han2en

1.0.5 • Public • Published

han2en

Chinese character convert to phonetic alphabet English letter

Install

npm install han2en --save

Usage

var han2en = require('han2en');

var en = han2en('林泉');
console.log(en);
// linquan

var en2 = han2en('林泉', '-');
console.log(en2);
// lin-quan

var en3 = han2en('林泉', {
  initial: true
});
console.log(en3);
// lq

var en4 = han2en('林泉是帅哥', {
  sep: '-',
  initial: true
});
console.log(en4);
// l-q-s-s-g

Readme

Keywords

none

Package Sidebar

Install

npm i han2en

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

25.3 kB

Total Files

4

Last publish

Collaborators

  • mlinquan