Comparing version 0.2.5 to 0.2.6
@@ -24,3 +24,3 @@ /** | ||
*/ | ||
class Pinyin { | ||
declare class Pinyin { | ||
constructor(options?: PinyinOptions) | ||
@@ -47,3 +47,3 @@ | ||
const pinyin: Pinyin | ||
declare const pinyin: Pinyin | ||
export default pinyin |
@@ -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('管理员')) | ||
@@ -17,3 +17,5 @@ console.log(pinyin.getCamelChars('管理员')) | ||
console.log(pinyin.getCamelChars('佛')) | ||
console.log(pinyin.getFullChars('佛'))*/ | ||
console.log(pinyin.getFullChars('佛')) | ||
console.log(pinyin.getFullChars('凃一二')) | ||
console.log(pinyin.getCamelChars('凃一二')) | ||
module.exports = pinyin; |
{ | ||
"name": "js-pinyin", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "汉字转换拼音,需要es6语法(let、class等)支持,不依赖其他组件", | ||
@@ -28,5 +28,5 @@ "private": false, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org " | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
"license": "MIT License" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
181259
2116