Comparing version 0.2.6 to 0.2.7
@@ -9,3 +9,3 @@ /** | ||
let pinyin = new (require('./dist/pinyin'))({charCase:0}); | ||
pinyin.setOptions({checkPolyphone: true, charCase: 0}); | ||
/*pinyin.setOptions({checkPolyphone: true, charCase: 0}); | ||
console.log(pinyin.getFullChars('管理员')) | ||
@@ -19,3 +19,3 @@ console.log(pinyin.getCamelChars('管理员')) | ||
console.log(pinyin.getFullChars('凃一二')) | ||
console.log(pinyin.getCamelChars('凃一二')) | ||
console.log(pinyin.getCamelChars('凃一二'))*/ | ||
module.exports = pinyin; |
{ | ||
"type": "commonjs", | ||
"name": "js-pinyin", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "汉字转换拼音,需要es6语法(let、class等)支持,不依赖其他组件", | ||
@@ -5,0 +6,0 @@ "private": false, |
@@ -17,6 +17,11 @@ # 汉字转拼音 | ||
console.log(pinyin.getFullChars('管理员')); | ||
console.log(pinyin.getCamelChars('管理员')); | ||
console.log(pinyin.getCamelChars('1234')); | ||
console.log(pinyin.getCamelChars('english')); | ||
console.log(pinyin.getFullChars('管理员')) | ||
console.log(pinyin.getCamelChars('管理员')) | ||
console.log(pinyin.getCamelChars('1234')) | ||
console.log(pinyin.getCamelChars('english')) | ||
console.log(pinyin.getCamelChars('昕')) | ||
console.log(pinyin.getCamelChars('佛')) | ||
console.log(pinyin.getFullChars('佛')) | ||
console.log(pinyin.getFullChars('凃一二')) | ||
console.log(pinyin.getCamelChars('凃一二')) | ||
``` |
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
181502
27