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.10.0 to 3.10.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## 3.10.1
当前版本: 3.10.0 -> 3.10.1
- 修正汉字拼音
- 哼:'hng' -> 'hēng hng'
## 3.10.0

@@ -2,0 +7,0 @@

2

package.json
{
"name": "pinyin-pro",
"version": "3.10.0",
"version": "3.10.1",
"description": "汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配",

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

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

当前版本: 3.9.0 -> 3.10.0
当前版本: 3.10.0 -> 3.10.1
- 优化包体积(约 30%)
- 修正汉字拼音
- 哼:'hng' -> 'hēng hng'

@@ -208,3 +209,4 @@ 点击查看 [版本更新文档](./CHANGELOG.md)

通过设置 `removeNonZh: true` ,可以过滤输入字符串中的非汉字字符</br>
通过设置 `removeNonZh: true` ,可以过滤输入字符串中的非汉字字符
<b>此参数已不推荐使用,建议使用</b> `nonZh: removed` <b>代替</b>

@@ -211,0 +213,0 @@

@@ -222,2 +222,7 @@ const { pinyin, customPinyin, match } = require('../dist/index.cjs.js');

it('specials', () => {
expect(pinyin('嗯')).to.be.equal('ǹg');
expect(pinyin('哼')).to.be.equal('hēng', 'hng');
});
it('none-array', () => {

@@ -224,0 +229,0 @@ const result = pinyin('汉语拼音', { toneType: 'none', type: 'array' });

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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