Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-pinyin

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-pinyin - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

4

index.js

@@ -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('凃一二'))
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc