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 1.2.1 to 1.2.2

2

package.json
{
"name": "pinyin-pro",
"version": "1.2.1",
"version": "1.2.2",
"description": "中文汉字词语拼音转换库。获取汉字、词语、句子等内容的拼音、韵母、声母、声调等信息。",

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

# 获取汉字、词语、句子的拼音(可选带音调)、韵母、声母等功能。是一个体积最小但功能最丰富的汉字转换拼音 npm 包。
---
[![NPM version][npm-badge]][npm-url]
可以获取汉字、词语、句子等中文的带声调拼音、不带声调拼音、韵母、声母等。是专业的、功能最丰富的中文汉字转换拼音库。

@@ -76,3 +80,3 @@

// 获取数组形式的不带音调韵母
pinyin('汉语拼音', { pattern: 'final', tone: false }); // ['an', 'u', 'in', 'in']
pinyin('汉语拼音', { pattern: 'final', tone: false, type: 'array' }); // ['an', 'u', 'in', 'in']
```

@@ -79,0 +83,0 @@

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