New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.16.7 to 3.17.0

types/core/convert/index.d.ts

2

package.json
{
"name": "pinyin-pro",
"version": "3.16.7",
"version": "3.17.0",
"description": "准确率和性能最优异的汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配",

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

@@ -25,2 +25,3 @@ [![pinyin-pro Logo](https://t1.wodetu.cn/2022/11/15/168e8a29acc856c48fdef4060c0ba5ad.png)](https://github.com/zh-lx/pinyin-pro)

- 支持获取汉字的所有拼音
- 支持拼音输入转换
- 极致的性能和极高的拼音识别准确率

@@ -85,2 +86,17 @@

- 拼音格式转换,更多功能请查看[convert API](https://pinyin-pro.cn/use/convert)
```js
import { convert } from 'pinyin-pro';
// 数组转符号
convert('pin1 yin1'); // 'pīn yīn'
// 符号转数字
convert('pīn yīn', { format: 'symbolToNum' }); // 'pin1 yin1'
// 消除符号
convert('pīn yīn', { format: 'toneNone' }); // 'pin yin'
```
- 获取带汉字拼音的 HTML 字符串,更多配置请查看[html API](https://pinyin-pro.cn/use/html)

@@ -87,0 +103,0 @@

@@ -1,2 +0,2 @@

import type { Pattern } from '@/common/ac';
import type { Pattern } from '../../lib/common/ac';
declare const DICT2: {

@@ -3,0 +3,0 @@ [prop: string]: string;

@@ -1,2 +0,2 @@

import type { Pattern } from '@/common/ac';
import type { Pattern } from '../../lib/common/ac';
declare const DICT3: {

@@ -3,0 +3,0 @@ [prop: string]: string;

@@ -1,2 +0,2 @@

import type { Pattern } from '@/common/ac';
import type { Pattern } from '../../lib/common/ac';
declare const DICT4: {

@@ -3,0 +3,0 @@ [prop: string]: string;

@@ -1,2 +0,2 @@

import type { Pattern } from '@/common/ac';
import type { Pattern } from '../../lib/common/ac';
declare const DICT5: {

@@ -3,0 +3,0 @@ [prop: string]: string;

@@ -1,2 +0,2 @@

import type { Pattern } from '@/common/ac';
import type { Pattern } from '../../lib/common/ac';
declare const Surnames: {

@@ -3,0 +3,0 @@ [key: string]: string;

@@ -6,1 +6,2 @@ export { pinyin } from './core/pinyin';

export { polyphonic } from './core/polyphonic';
export { convert } from './core/convert';

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

Sorry, the diff of this file is not supported yet

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