decode-zhuyin
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "decode-zhuyin", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Decode Zhuyin password from Chinese words", | ||
"bin": "exec.js", | ||
"main": "index.js", | ||
@@ -6,0 +7,0 @@ "engines": { |
# Decode Zhuyin | ||
Decode Zhuyin password from Chinese words. | ||
Decode Chinese words to Zhuyin password. | ||
@@ -8,11 +8,26 @@ ## Features | ||
* Output full text. | ||
* Output without spaces. | ||
* Output without special characters. | ||
* Output without space. | ||
* Output without special character. | ||
* Support [npx](https://www.npmjs.com/package/npx) | ||
## Usage | ||
node.js require | ||
``` | ||
require('./')('我難過') // output: 'ji3s06eji4' | ||
require('./no-space')('垃圾不分藍綠') // output: 'x8ru1j4zpx064' | ||
require('./no-special-characters')('這我一定吉') // output: '5k4ji3u2u4ru6' | ||
// output full text | ||
require('decode-zhuyin')('安安你好正') // '0 0 su3cl35/4' | ||
// output without space | ||
require('decode-zhuyin/no-sp')('安安你好正') // '00su3cl35/4' | ||
// output without special character | ||
require('decode-zhuyin/no-ch')('安安你好正') // '00su3cl354' | ||
``` | ||
npx (built-in after `npm 5.2.0`) | ||
``` | ||
$ npx decode-zhuyin 安安你好正 | ||
00su3cl354 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132391
10
2831
33