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 2.0.2 to 2.0.3

8

index.d.ts
export declare const pinyin: (
word: string,
options?: {
toneType: 'symbol' | 'num' | 'none'; // 音调样式
pattern: 'pinyin' | 'initial' | 'final'; // 返回数据模式
type: 'string' | 'array'; // 返回数据类型
multiple: boolean; // 是否返回多音,仅在单字有效
toneType?: 'symbol' | 'num' | 'none'; // 音调样式
pattern?: 'pinyin' | 'initial' | 'final'; // 返回数据模式
type?: 'string' | 'array'; // 返回数据类型
multiple?: boolean; // 是否返回多音,仅在单字有效
}
) => string | string[];
{
"name": "pinyin-pro",
"version": "2.0.2",
"version": "2.0.3",
"description": "汉字转拼音库。获取汉字、词语、句子等内容的拼音、韵母、声母、声调等信息。",

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

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