baijiaxing
v0.0.1
Published
baijiaxing = 百家姓
Downloads
4
Maintainers
Readme
baijiaxing
baijiaxing = 百家姓
Install
$ npm i baijiaxing --save
API
const baijiaxing = require('baijiaxing');
get(中文姓名)
baijiaxing.get('张三').should.equal('zhang');
baijiaxing.get('李四').should.equal('li');
baijiaxing.get('诸葛亮').should.equal('zhu ge');
.getWithTone(中文姓名)
baijiaxing.getWithTone('张三').should.equal('zhāng');
baijiaxing.getWithTone('李四').should.equal('lǐ');
baijiaxing.getWithTone('诸葛亮').should.equal('zhū gě');
Changelog
License
the MIT License http://magicdawn.mit-license.org