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.19.6 to 3.19.7

2

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

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

@@ -8,3 +8,3 @@ export interface SingleWordResult {

}
export declare type ToneType = 'symbol' | 'num' | 'none';
export declare type PinyinMode = 'normal' | 'surname';
export type ToneType = 'symbol' | 'num' | 'none';
export type PinyinMode = 'normal' | 'surname';

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

declare type ConvertFormat = 'numToSymbol' | 'symbolToNum' | 'toneNone';
type ConvertFormat = 'numToSymbol' | 'symbolToNum' | 'toneNone';
interface ConvertOptions {

@@ -3,0 +3,0 @@ /**

@@ -1,3 +0,3 @@

declare type CustomHandleType = 'add' | 'replace';
declare type CustomDictType = 'pinyin' | 'multiple' | 'polyphonic';
type CustomHandleType = 'add' | 'replace';
type CustomDictType = 'pinyin' | 'multiple' | 'polyphonic';
interface CustomPinyinOptions {

@@ -4,0 +4,0 @@ /**

@@ -33,3 +33,3 @@ interface HtmlOptions {

*/
export declare const html: (text: string, options?: HtmlOptions | undefined) => string;
export declare const html: (text: string, options?: HtmlOptions) => string;
export {};

@@ -30,3 +30,3 @@ interface MatchOptions {

*/
export declare const match: (text: string, pinyin: string, options?: MatchOptions | undefined) => any;
export declare const match: (text: string, pinyin: string, options?: MatchOptions) => any;
export {};

@@ -8,3 +8,3 @@ import type { SingleWordResult, PinyinMode } from '../../common/type';

*/
declare type GetPinyinWithoutTone = (pinyin: string) => string;
type GetPinyinWithoutTone = (pinyin: string) => string;
declare const getPinyinWithoutTone: GetPinyinWithoutTone;

@@ -16,3 +16,3 @@ /**

*/
declare type GetMultiplePinyin = (word: string, mode?: PinyinMode) => SingleWordResult[];
type GetMultiplePinyin = (word: string, mode?: PinyinMode) => SingleWordResult[];
declare const getMultiplePinyin: GetMultiplePinyin;

@@ -24,3 +24,3 @@ /**

*/
declare type GetInitialAndFinal = (pinyin: string) => {
type GetInitialAndFinal = (pinyin: string) => {
final: string;

@@ -35,3 +35,3 @@ initial: string;

*/
declare type GetFinalParts = (pinyin: string) => {
type GetFinalParts = (pinyin: string) => {
head: string;

@@ -47,3 +47,3 @@ body: string;

*/
declare type GetNumOfTone = (pinyin: string) => string;
type GetNumOfTone = (pinyin: string) => string;
declare const getNumOfTone: GetNumOfTone;

@@ -56,3 +56,3 @@ /**

*/
declare type GetPinyinWithNum = (pinyin: string, originPinyin: string) => string;
type GetPinyinWithNum = (pinyin: string, originPinyin: string) => string;
declare const getPinyinWithNum: GetPinyinWithNum;

@@ -64,4 +64,4 @@ /**

*/
declare type GetFirstLetter = (pinyin: string) => string;
type GetFirstLetter = (pinyin: string) => string;
declare const getFirstLetter: GetFirstLetter;
export { getPinyinWithoutTone, getInitialAndFinal, getMultiplePinyin, getNumOfTone, getPinyinWithNum, getFirstLetter, getFinalParts, };
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