Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

decode-zhuyin

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decode-zhuyin - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

exec.js

3

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc