Skip to content

tpai/decode-zhuyin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decode Zhuyin

Zhuyin is a bunch of symbol for transliterating Chinese word, most of Taiwanese people choose one sentence or few words, and map the Zhuyin position of keyboard to get meaning less characters as their password which is hard to remember, so that's what decode-zhuyin does.

Features

  • Output full text.
  • Output without space.
  • Output without special character.
  • Support npx

Usage

node.js require

// 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