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

pinyin-pro

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinyin-pro - npm Package Compare versions

Comparing version 3.2.0-alpha.1 to 3.2.0-alpha.2

2

package.json
{
"name": "pinyin-pro",
"version": "3.2.0-alpha.1",
"version": "3.2.0-alpha.2",
"description": "汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母等信息。",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -27,5 +27,5 @@ [![pinyin-pro Logo](https://i.ibb.co/26fJ5vF/pinyin-logo.png)](https://github.com/zh-lx/pinyin-pro)

- 根据单字的使用频率调整字典顺序,性能大幅提升,长句的转换时间只需之前版本 50% 左右的时间
- 修复部分单字的常用读音
啊: ā -> a
阿: ē -> ā
- 修复部分单字的常用读音<br>
- 啊: ā -> a
- 阿: ē -> ā
- 增加浏览器中 script 的引入方式

@@ -65,2 +65,3 @@

import { pinyin } from 'pinyin-pro';
pinyin('汉语拼音'); // 'hàn yǔ pīn yīn'
```

@@ -72,2 +73,3 @@

const { pinyin } = require('pinyin-pro');
pinyin('汉语拼音'); // 'hàn yǔ pīn yīn'
```

@@ -94,2 +96,4 @@

```js
import { pinyin } from 'pinyin-pro';
// 获取带音调拼音

@@ -170,2 +174,4 @@ pinyin('汉语拼音'); // 'hàn yǔ pīn yīn'

```javascript
import { pinyin } from 'pinyin-pro';
// 获取多音

@@ -172,0 +178,0 @@ pinyin('好', { multiple: true }); // 'hǎo hào'

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