{"_id":"han","_rev":"33-8cc2599216ba89180b9325a1a5eea6d1","name":"han","description":"a module for tanslating Chinese(汉字) into pinyin","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"han","description":"a module for tanslate Chinese(汉字) to pinyin","version":"0.0.1","author":{"name":"Sofish Lin","email":"sofish@me.com"},"dependencies":{},"devDependencies":{},"keywords":["han","pinyin","url"],"repository":{"type":"git","url":"git://github.com/sofish/han.git"},"main":"han","bin":{},"scripts":{},"engines":{"node":"*"},"readme":"### Han(汉)：a module for tanslate Chinese(汉字) to pinyin\n\n","_id":"han@0.0.1","dist":{"shasum":"ae8188b8cc3d62df85c413bf54f66c586bca14c3","tarball":"https://registry.npmjs.org/han/-/han-0.0.1.tgz","integrity":"sha512-I7nkRoJ3Xe/XzJJw2Njc2yMzHMHE1gWLBcNeJu87t7iJsxxvTb0oPDAcO+wAIVQY2n5ayPJOLVeLzkyPGDI1eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTmTSZgHXRCZvUkOmAVe4eroDPeb4aHbDCf/QakiOYcgIgdsrBcM0PPHPR5w7ry6HMx23MGPCoTiUbkPKIkXMYkGs="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"sofish","email":"sofish@me.com"},"maintainers":[{"name":"sofish","email":"sofish@me.com"}],"directories":{}},"0.0.2":{"name":"han","description":"a module for tanslating Chinese(汉字) to pinyin","version":"0.0.2","author":{"name":"Sofish Lin","email":"sofish@me.com"},"dependencies":{},"devDependencies":{},"keywords":["han","pinyin","url"],"repository":{"type":"git","url":"git://github.com/sofish/han.git"},"main":"han","bin":{},"scripts":{},"engines":{"node":"*"},"readme":"# Han(汉)\n\na module for tanslating Chinese(汉字) to pinyin.\n\n### Installation\n\n```bash\n$ npm install han\n```\n\n### Usage\n\nUse the `letter` method to translate Chinese in to english letter:\n\n```js\nvar han = require('han');\n\nhan.letter('中文') // zhong wen\nhan.letter('中文', '-') // zhong-wen\nhan.letter('中文', function(err, result){\n  console.log(result) // zhong wen\n})\n```\n\nThe `letter` method has 3 params by default, the can all be _**optional**_, it depends on you(^^). follow the message below, you can also find it at [lib/translate.js](https://github.com/sofish/han/blob/master/lib/translate.js):\n\n```js\n/* @param `chinese` {String} Chinese word\n * @param [optional] `separator` {String} separator for the letters\n * @param [optional] `callback(err, result)` {Function} if a callback is specified,\n *   the program will use an async way to do the translation \n */\n```\n\n### License\n\nLicensed under [MIT](https://github.com/sofish/han/blob/master/LICENSE).\n\n\n### Contributers:\n\nSpecail thank to [fayland](https://github.com/fayland/perl-lingua-han/tree/master/Lingua-Han-PinYin/lib/Lingua/Han/PinYin) for providing the unicode table of Chinese.\n\n","_id":"han@0.0.2","dist":{"shasum":"255296e6025d32e3f16999ccd01c95a1cd1df84d","tarball":"https://registry.npmjs.org/han/-/han-0.0.2.tgz","integrity":"sha512-8QWrGfn/KXHwdPRanLDO99FcwLSFk4DLODtp17f8vrCvTrlgVTHFQ5EdhKCWV6x1tZucrET0WNoIY9OEgY8fgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBwz3PDzeP3IXrjjV6u1CWuwcSFsfc/clVsbZqYJFppIAiEA9ZVWeEsoSkmcK6YIsPlgI+4ZzwHAgxgGNLs2CslQVpY="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"sofish","email":"sofish@me.com"},"maintainers":[{"name":"sofish","email":"sofish@me.com"}],"directories":{}},"0.0.3":{"name":"han","description":"a module for tanslating Chinese(汉字) to pinyin","version":"0.0.3","author":{"name":"Sofish Lin","email":"sofish@me.com"},"dependencies":{},"devDependencies":{},"keywords":["han","pinyin","url"],"repository":{"type":"git","url":"git://github.com/sofish/han.git"},"main":"han","bin":{},"scripts":{},"engines":{"node":"*"},"readme":"# Han(汉)\n\n[![Build Status](https://travis-ci.org/sofish/han.png)](https://travis-ci.org/sofish/han)\n\na module for tanslating Chinese(汉字) to pinyin.\n\n### Installation\n\n```bash\n$ npm install han\n```\n\n### Usage\n\nUse the `letter` method to translate Chinese in to english letter:\n\n```js\nvar han = require('han');\n\nhan.letter('中文') // zhong wen\nhan.letter('中文', '-') // zhong-wen\nhan.letter('中文', function(err, result){\n  console.log(result) // zhong wen\n})\n```\n\nThe `letter` method has 3 params by default, the can all be _**optional**_, it depends on you(^^). follow the message below, you can also find it at [lib/translate.js](https://github.com/sofish/han/blob/master/lib/translate.js):\n\n```js\n/* @param `chinese` {String} Chinese word\n * @param [optional] `separator` {String} separator for the letters\n * @param [optional] `callback(err, result)` {Function} if a callback is specified,\n *   the program will use an async way to do the translation \n */\n```\n\n### License\n\nLicensed under [MIT](https://github.com/sofish/han/blob/master/LICENSE).\n\n\n### Contributers:\n\nSpecail thank to [fayland](https://github.com/fayland/perl-lingua-han/tree/master/Lingua-Han-PinYin/lib/Lingua/Han/PinYin) for providing the unicode table of Chinese.\n\n","_id":"han@0.0.3","dist":{"shasum":"a8a57b236b521922edf60e7edc899ad20c88d644","tarball":"https://registry.npmjs.org/han/-/han-0.0.3.tgz","integrity":"sha512-LdoE7DXNyKRb3F8+E2P9SIbJhXLBB/DnPWaXEFUntJ4I4RGEIyHCJu0OwVQSpLm7xyFP6d/wu3hAeYP+yU3bLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2me5xbyWZmKbnLkmNTUBBi2lRan5BKBPxEmjXTeoU6wIhAO04ybrdkT+bwhm+2Cyg3tQyjL0EQo0Mwfq3lCiNUnri"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"sofish","email":"sofish@me.com"},"maintainers":[{"name":"sofish","email":"sofish@me.com"}],"directories":{}},"0.0.4":{"name":"han","description":"a module for tanslating Chinese(汉字) to pinyin","version":"0.0.4","author":{"name":"Sofish Lin","email":"sofish@me.com"},"dependencies":{},"devDependencies":{},"keywords":["han","pinyin","url"],"repository":{"type":"git","url":"git://github.com/sofish/han.git"},"main":"han","bin":{},"scripts":{},"engines":{"node":"*"},"readme":"# Han(汉)\n\n[![Build Status](https://travis-ci.org/sofish/han.png)](https://travis-ci.org/sofish/han)\n\na module for tanslating Chinese(汉字) to pinyin.\n\n### Installation\n\n```bash\n$ npm install han\n```\n\n### Usage\n\nUse the `letter` method to translate Chinese in to english letter:\n\n```js\nvar han = require('han');\n\nhan.letter('中文') // zhong wen\nhan.letter('中文', '-') // zhong-wen\nhan.letter('中文', function(err, result){\n  console.log(result) // zhong wen\n})\n```\n\nThe `letter` method has 3 params by default, the can all be _**optional**_, it depends on you(^^). follow the message below, you can also find it at [lib/translate.js](https://github.com/sofish/han/blob/master/lib/translate.js):\n\n```js\n/* @param `chinese` {String} Chinese word\n * @param [optional] `separator` {String} separator for the letters\n * @param [optional] `callback(err, result)` {Function} if a callback is specified,\n *   the program will use an async way to do the translation \n */\n```\n\n### Translating Messy Code\n\n#### sample code, orginal file is here [testcase.js](https://github.com/sofish/han/blob/master/testcase.js):\n```js\nvar han = require('han');\n\nconsole.log('原文：要实现 Speaker Deck 那种中文转拼音的')\nconsole.log(han.letter('要实现 Speaker Deck 那种中文转拼音的', '-'), '\\n')\n\nhan.letter('中aaaaa中¢∞§¶•誩aa文喳aa', function(err, result){\n\tif(err) throw err;\n\tconsole.log('原文：中aaaaa中¢∞§¶•誩aa文喳aa')\n\tconsole.log('异步结果：' + result, '\\n')\n});\n\nhan.letter('中EnglishWords¢∞§¶•ªº文', '-', function(err, result){\n\tconsole.log('原文：中EnglishWords¢∞§¶•ªº文')\n\tconsole.log('异步结果：' + result)\n});\n```\n\n#### output:\n```\n原文：要实现 Speaker Deck 那种中文转拼音的\nyao-shi-xian-speaker-deck-na-zhong-zhong-wen-zhuan-pin-yin-de\n\n原文：中aaaaa中¢∞§¶•誩aa文喳aa\n异步结果：zhong aaaaa 4e2da2 221ea7b6 2022 jing aa wen zha aa\n\n原文：中EnglishWords¢∞§¶•ªº文\n异步结果：zhong-englishwords-221ea7b6-2022aaba-wen\n```\n\n\n### License\n\nLicensed under [MIT](https://github.com/sofish/han/blob/master/LICENSE).\n\n\n### Contributers:\n\nSpecail thank to [fayland](https://github.com/fayland/perl-lingua-han/tree/master/Lingua-Han-PinYin/lib/Lingua/Han/PinYin) for providing the unicode table of Chinese.\n\n","_id":"han@0.0.4","dist":{"shasum":"e5d4461842123b532fd201d769f44f00faffa6d2","tarball":"https://registry.npmjs.org/han/-/han-0.0.4.tgz","integrity":"sha512-iGoScwCCjVTkD5PyzKmlkAfaO/tZ9vddDSDjgD8DtkFL/tTYugyEbOKRjY0PNw+5+AsVXkfIAQ/kTdtkkQNv7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRhQDujONtZqBPmKnGzbsUl2H3XvXFoqJTHdJkxaMQ9QIhAPY0E0dXesov50silZPg0ffqN9tLxeIUlKe8Zu+8YuSi"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"sofish","email":"sofish@me.com"},"maintainers":[{"name":"sofish","email":"sofish@me.com"}],"directories":{}},"0.0.5":{"name":"han","description":"a module for tanslating Chinese(汉字) to pinyin","version":"0.0.5","author":{"name":"Sofish Lin","email":"sofish@me.com"},"dependencies":{},"devDependencies":{},"keywords":["han","pinyin","url"],"repository":{"type":"git","url":"git://github.com/sofish/han.git"},"main":"han","bin":{},"scripts":{},"engines":{"node":"*"},"readme":"# Han(汉)\n\n[![Build Status](https://travis-ci.org/sofish/han.png)](https://travis-ci.org/sofish/han)\n\na module for tanslating Chinese(汉字) to pinyin.\n\n## Installation\n\n```bash\n$ npm install han\n```\n\n## Usage\n\nUse the `letter` method to translate Chinese in to english letter:\n\n```js\nvar han = require('han');\n\nhan.letter('中文') // zhong wen\nhan.letter('中文', '-') // zhong-wen\nhan.letter('中文', function(err, result){\n  console.log(result) // zhong wen\n})\n```\n\nThe `letter` method has 3 params by default, the can all be _**optional**_, it depends on you(^^). follow the message below, you can also find it at [lib/translate.js](https://github.com/sofish/han/blob/master/lib/translate.js):\n\n```js\n/* @param `chinese` {String} Chinese word\n * @param [optional] `separator` {String} separator for the letters\n * @param [optional] `callback(err, result)` {Function} if a callback is specified,\n *   the program will use an async way to do the translation \n */\n```\n\n## Testcase\n\n```sh\n$ npm install han\n# or git clone git://github.com/sofish/han.git\n\n$ cd node_modules/han && node testcase.js\n```\n\n## Translating Messy Code\n\nMessy code? orginal file is here [testcase.js](https://github.com/sofish/han/blob/master/testcase.js):\n```js\nvar han = require('han');\n\nconsole.log('原文：要实现 Speaker Deck 那种中文转拼音的')\nconsole.log(han.letter('要实现 Speaker Deck 那种中文转拼音的', '-'), '\\n')\n// 原文：要实现 Speaker Deck 那种中文转拼音的\n// yao-shi-xian-speaker-deck-na-zhong-zhong-wen-zhuan-pin-yin-de\n\nhan.letter('中aaaaa中¢∞§¶•誩aa文喳aa', function(err, result){\n  if(err) throw err;\n  console.log('原文：中aaaaa中¢∞§¶•誩aa文喳aa')\n  console.log('异步结果：' + result, '\\n')\n  // 原文：中aaaaa中¢∞§¶•誩aa文喳aa\n  // 异步结果：zhong aaaaa 4e2da2 221ea7b6 2022 jing aa wen zha aa\n});\n\nhan.letter('中EnglishWords¢∞§¶•ªº文', '-', function(err, result){\n  console.log('原文：中EnglishWords¢∞§¶•ªº文')\n  console.log('异步结果：' + result)\n  // 原文：中EnglishWords¢∞§¶•ªº文\n  // 异步结果：zhong-englishwords-221ea7b6-2022aaba-wen\n});\n```\n\n## License\n\nLicensed under [MIT](https://github.com/sofish/han/blob/master/LICENSE).\n\n\n## Contributers:\n\nSpecail thank to [fayland](https://github.com/fayland/perl-lingua-han/tree/master/Lingua-Han-PinYin/lib/Lingua/Han/PinYin) for providing the unicode table of Chinese.\n\n","_id":"han@0.0.5","dist":{"shasum":"9ed6e4772e358c9146ead094d468050b970cd7b5","tarball":"https://registry.npmjs.org/han/-/han-0.0.5.tgz","integrity":"sha512-mqtcmERX8apIMdi8g3k6zbasyAGGIZKmDaj4d0e3Gfq+ZI3pQM0U5Wxgs6Dr+EPibEMgtHLMiBqzbGw7FWKX3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH9Yr+AviFbQ7m/cbDbHv3zWg5sEI+tT9u8L5rl8feo2AiA0HY6ATeV+jKplHMkWS0Uyskn40afNJjMIbK+u5wbySg=="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"sofish","email":"sofish@me.com"},"maintainers":[{"name":"sofish","email":"sofish@me.com"}],"directories":{}},"0.0.6":{"name":"han","description":"a module for tanslating Chinese(汉字) into pinyin","version":"0.0.6","author":{"name":"Sofish Lin","email":"sofish@me.com"},"dependencies":{},"devDependencies":{},"keywords":["han","pinyin","url"],"repository":{"type":"git","url":"git://github.com/sofish/han.git"},"main":"han","bin":{},"scripts":{},"engines":{"node":"*"},"readme":"# Han(汉)\n\n[![Build Status](https://travis-ci.org/sofish/han.png)](https://travis-ci.org/sofish/han)\n\na module for tanslating Chinese(汉字) into pinyin.\n\n## Installation\n\n```bash\n$ npm install han\n```\n\n## Usage\n\n### 1. han.letter()\n\n```js\nhan.letter(chinese ,[separator ,[callback(err, data)])\n```\nUse the `letter` method to translate Chinese in to english letter:\n\n```js\nvar han = require('han');\n\nhan.letter('中文') // zhong wen\nhan.letter('中文', '-') // zhong-wen\nhan.letter('中文', function(err, result){\n  console.log(result) // zhong wen\n})\n```\n\nThe `letter` method has 3 params by default, the can all be _**optional**_, it depends on you(^^). follow the message below, you can also find it at [lib/translate.js](https://github.com/sofish/han/blob/master/lib/translate.js):\n\n```js\n/* @param `chinese` {String} Chinese word\n * @param [optional] `separator` {String} separator for the letters\n * @param [optional] `callback(err, result)` {Function} if a callback is specified,\n *   the program will use an async way to do the translation \n */\n```\n\n### 2. han.pinyin(chinese)\n\nUser the `pinyin` method to translate Chinese into Pinyin(letters with notation):\n\n```js\nhan.pinyin('中文') // [ [ 'zhōng', 'zhòng' ], [ 'wén', 'wèn' ] ]\n\n// mixin are allowed, like:\nhan.pinyin('My Chinese name is 小鱼(sofish)');\n// [ 'My Chinese name is ', [ 'xǐao' ], [ 'yú' ], '(sofish)' ]\n\n// also running with messy code, see the testcase below\n```\n\n#### __WHY__ the return value is an array?\n\nBeause that a Chinese word always having more than one pronunciation. You may want to allow users to correct your output that is generated by your program in an automatic way(like google?! yep!).\n\n## Testcase\n\n```sh\n$ npm install han\n# or git clone git://github.com/sofish/han.git\n\n$ cd node_modules/han && node testcase.js\n```\n\n## Translating Messy Code\n\nMessy code? orginal file is here [testcase.js](https://github.com/sofish/han/blob/master/testcase.js):\n```js\nvar han = require('han');\n\nconsole.log('orginal：要实现 Speaker Deck 那种中文转拼音的')\nconsole.log(han.letter('要实现 Speaker Deck 那种中文转拼音的', '-'), '\\n')\n// orginal：要实现 Speaker Deck 那种中文转拼音的\n// yao-shi-xian-speaker-deck-na-zhong-zhong-wen-zhuan-pin-yin-de\n\nhan.letter('中aaaaa中¢∞§¶•誩aa文喳aa', function(err, result){\n  if(err) throw err;\n  console.log('orginal：中aaaaa中¢∞§¶•誩aa文喳aa')\n  console.log('callback：' + result, '\\n')\n  // orginal：中aaaaa中¢∞§¶•誩aa文喳aa\n  // callback：zhong aaaaa 4e2da2 221ea7b6 2022 jing aa wen zha aa\n});\n\nhan.letter('中EnglishWords¢∞§¶•ªº文', '-', function(err, result){\n  console.log('orginal：中EnglishWords¢∞§¶•ªº文')\n  console.log('callback：' + result)\n  // original：中EnglishWords¢∞§¶•ªº文\n  // callback：zhong-englishwords-221ea7b6-2022aaba-wen\n});\n\n\nconsole.log('original: My Chinese name is 小鱼(sofish)')\nconsole.log(han.pinyin('My Chinese name is 小鱼(sofish)'))\n// original: My Chinese name is 小鱼(sofish)\n// [ 'My Chinese name is ', [ 'xǐao' ], [ 'yú' ], '(sofish)' ]\n\nconsole.log('original: #$%^&*中23¢∞§¶•ª52849文@#$%^&*(意思，还有英文：english')\nconsole.log(han.pinyin('#$%^&*中23¢∞§¶•ª52849文@#$%^&*(意思，还有英文：english'))\n// original: #$%^&*中23¢∞§¶•ª52849文@#$%^&*(意思，还有英文：english\n// [ '#$%^&*', [ 'zhōng', 'zhòng' ], '23¢∞§¶•ª52849', [ 'wén', 'wèn' ],\n//  '@#$%^&*(', [ 'yì' ], [ 'sī', 'sì', 'sāi' ], '，', [ 'húan', 'hái', 'xúan' ],\n//  [ 'yǒu', 'yòu' ], [ 'yīng', 'yāng' ], [ 'wén', 'wèn' ], '：english' ]\n```\n\n## License\n\nLicensed under [MIT](https://github.com/sofish/han/blob/master/LICENSE).\n\n\n## Contributers:\n\nSpecail thank to [fayland](https://github.com/fayland/perl-lingua-han/tree/master/Lingua-Han-PinYin/lib/Lingua/Han/PinYin) for providing the unicode table of Chinese.\n\n","_id":"han@0.0.6","dist":{"shasum":"0e55210938718f0d31254cb60791a856379db0e1","tarball":"https://registry.npmjs.org/han/-/han-0.0.6.tgz","integrity":"sha512-2+3/FF2uAl51+o6lN6Ov6SpEvFX3oAQatUI1CdW5irU3gnEYo4zLNdtVxdfiAv+v4aXpcsO5E7sRrk3GXTbhZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyfOFeJZAU2NrPZIkXF/3XGegNb+bDY3t30Hmo11i7zAiEAvhw4t8PmyT9Kehs/8JMND8mK43lNLl8j9XAVWHaWDu0="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"sofish","email":"sofish@me.com"},"maintainers":[{"name":"sofish","email":"sofish@me.com"}]},"0.0.7":{"name":"han","description":"a module for tanslating Chinese(汉字) into pinyin","version":"0.0.7","author":{"name":"Sofish Lin","email":"sofish@me.com"},"dependencies":{},"devDependencies":{},"keywords":["han","pinyin","url"],"repository":{"type":"git","url":"git://github.com/sofish/han.git"},"main":"han","bin":{},"scripts":{},"engines":{"node":"*"},"readme":"# Han(汉)\n\n[![Build Status](https://travis-ci.org/sofish/han.png)](https://travis-ci.org/sofish/han)\n\na module for tanslating Chinese(汉字) into pinyin.\n\n## Installation\n\n```bash\n$ npm install han\n```\n\n## Usage\n\n### 1. han.letter()\n\n```js\nhan.letter(chinese ,[separator ,[callback(err, data)])\n```\nUse the `letter` method to translate Chinese in to english letter:\n\n```js\nvar han = require('han');\n\nhan.letter('中文') // zhongwen\nhan.letter('中文', '-') // zhong-wen\nhan.letter('中文', function(err, result){\n  console.log(result) // zhongwen\n})\n```\n\nThe `letter` method has 3 params by default, they can all be _**optional**_, it depends on you(^^). follow the message below, you can also find it at [lib/translate.js](https://github.com/sofish/han/blob/master/lib/translate.js):\n\n```js\n/* @param `chinese` {String} Chinese word\n * @param [optional] `separator` {String} separator for the letters\n * @param [optional] `callback(err, result)` {Function} if a callback is specified,\n *   the program will use an async way to do the translation \n */\n```\n\n### 2. han.pinyin(chinese)\n\nUser the `pinyin` method to translate Chinese into Pinyin(letters with notation):\n\n```js\nhan.pinyin('中文') // [ [ 'zhōng', 'zhòng' ], [ 'wén', 'wèn' ] ]\n\n// mixin are allowed, like:\nhan.pinyin('My Chinese name is 小鱼(sofish)');\n// [ 'My Chinese name is ', [ 'xǐao' ], [ 'yú' ], '(sofish)' ]\n\n// also running with messy code, see the testcase below\n```\n\n#### __WHY__ the return value is an array?\n\nBeause that a Chinese word always having more than one pronunciation. You may want to allow users to correct your output that is generated by your program in an automatic way(like google?! yep!).\n\n## Testcase\n\n```sh\n$ npm install han\n# or git clone git://github.com/sofish/han.git\n\n$ cd node_modules/han && node testcase.js\n```\n\n## Translating Messy Code\n\nMessy code? orginal file is here [testcase.js](https://github.com/sofish/han/blob/master/testcase.js):\n```js\nvar han = require('han');\n\nconsole.log('orginal：要实现 Speaker Deck 那种中文转拼音的')\nconsole.log(han.letter('要实现 Speaker Deck 那种中文转拼音的', '-'), '\\n')\n// orginal：要实现 Speaker Deck 那种中文转拼音的\n// yao-shi-xian-speaker-deck-na-zhong-zhong-wen-zhuan-pin-yin-de\n\nhan.letter('中aaaaa中¢∞§¶•誩aa文喳aa', function(err, result){\n  if(err) throw err;\n  console.log('orginal：中aaaaa中¢∞§¶•誩aa文喳aa')\n  console.log('callback：' + result, '\\n')\n  // orginal：中aaaaa中¢∞§¶•誩aa文喳aa\n  // callback：zhong aaaaa 4e2da2 221ea7b6 2022 jing aa wen zha aa\n});\n\nhan.letter('中EnglishWords¢∞§¶•ªº文', '-', function(err, result){\n  console.log('orginal：中EnglishWords¢∞§¶•ªº文')\n  console.log('callback：' + result)\n  // original：中EnglishWords¢∞§¶•ªº文\n  // callback：zhong-englishwords-221ea7b6-2022aaba-wen\n});\n\n\nconsole.log('original: My Chinese name is 小鱼(sofish)')\nconsole.log(han.pinyin('My Chinese name is 小鱼(sofish)'))\n// original: My Chinese name is 小鱼(sofish)\n// [ 'My Chinese name is ', [ 'xǐao' ], [ 'yú' ], '(sofish)' ]\n\nconsole.log('original: #$%^&*中23¢∞§¶•ª52849文@#$%^&*(意思，还有英文：english')\nconsole.log(han.pinyin('#$%^&*中23¢∞§¶•ª52849文@#$%^&*(意思，还有英文：english'))\n// original: #$%^&*中23¢∞§¶•ª52849文@#$%^&*(意思，还有英文：english\n// [ '#$%^&*', [ 'zhōng', 'zhòng' ], '23¢∞§¶•ª52849', [ 'wén', 'wèn' ],\n//  '@#$%^&*(', [ 'yì' ], [ 'sī', 'sì', 'sāi' ], '，', [ 'húan', 'hái', 'xúan' ],\n//  [ 'yǒu', 'yòu' ], [ 'yīng', 'yāng' ], [ 'wén', 'wèn' ], '：english' ]\n```\n\n## License\n\nLicensed under [MIT](https://github.com/sofish/han/blob/master/LICENSE).\n\n\n## Contributers:\n\nSpecail thank to [fayland](https://github.com/fayland/perl-lingua-han/tree/master/Lingua-Han-PinYin/lib/Lingua/Han/PinYin) for providing the unicode table of Chinese.\n\n","readmeFilename":"readme.md","_id":"han@0.0.7","dist":{"shasum":"92767221b13bfb115bf9d261af23eacef1d792b7","tarball":"https://registry.npmjs.org/han/-/han-0.0.7.tgz","integrity":"sha512-Pf8lBRQ8IZZfQeMmEbVL8GhiVxs6gxMxGHNcyeFjbJhqUt6YajMUzjBcXXHIPSfCCYX6K0iJgSgA1gL81E8UOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn79RD54kTnXGWi9fQQxVH7H17DV+mRawRpInl8jZa/AIhAKZbqoJ/enUs5VBtzjF4nwDzOLimScRbRbFvwXrZPc5W"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"sofish","email":"happinesz@gmail.com"},"maintainers":[{"name":"sofish","email":"sofish@me.com"}]}},"readme":"### Han(汉)：a module for tanslate Chinese(汉字) to pinyin\n\n","maintainers":[{"name":"sofish","email":"sofish@me.com"}],"time":{"modified":"2022-06-18T18:49:46.699Z","created":"2012-10-04T13:51:33.753Z","0.0.1":"2012-10-04T13:51:37.567Z","0.0.2":"2012-10-04T14:40:37.120Z","0.0.3":"2012-10-05T03:45:10.741Z","0.0.4":"2012-10-05T04:22:16.523Z","0.0.5":"2012-10-05T06:55:26.176Z","0.0.6":"2012-10-07T05:39:45.331Z","0.0.7":"2013-06-19T12:34:50.808Z"},"author":{"name":"Sofish Lin","email":"sofish@me.com"},"repository":{"type":"git","url":"git://github.com/sofish/han.git"},"users":{"stonestyle":true,"lfeng":true,"xiaochao":true,"mac86cy":true}}