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.1.6 to 0.1.9

2

package.json
{
"name": "js-pinyin",
"version": "0.1.6",
"version": "0.1.9",
"description": "汉字转换拼音,需要es6语法(let、class等)支持,不依赖其他组件",

@@ -5,0 +5,0 @@ "private": false,

@@ -5,11 +5,18 @@ # 汉字转拼音

## 安装
>` npm install js-pinyin `
>
>` import pinyin from 'js-pinyin' `
```base
npm install js-pinyin
import pinyin from 'js-pinyin'
```
## 使用示例
>` let pinyin = require('js-pinyin'); `
>` console.log(pinyin.getFullChars('管理员')); `
>` console.log(pinyin.getCamelChars('管理员')); `
>` console.log(pinyin.getCamelChars('1234')); `
>` console.log(pinyin.getCamelChars('english')); `
```js
let pinyin = require('js-pinyin');
pinyin.setOptions({checkPolyphone: false, charCase: 0});
console.log(pinyin.getFullChars('管理员'));
console.log(pinyin.getCamelChars('管理员'));
console.log(pinyin.getCamelChars('1234'));
console.log(pinyin.getCamelChars('english'));
```
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