Home

Awesome

zh-to-en-symbol Build Status codecov explain

「 fix Zh symbol to En symbol 」

Install

npm install zh-to-en-symbol
yarn add zh-to-en-symbol

Usage

const fixZhtoEn = require('zh-to-en-symbol');

let result = fixZhtoEn("你好阿baby'‘~`!@“#$^");
//"你好阿baby''~`!@\"#$^"

API

zhToEnSymbol(string): newStr

string

name:string
Type:string
Desc:zh symbol string

newStr

name:newStr
Type:string
Desc:en symbol string
<!-- #### options ##### foo | name: | foo | | -------- | ------------ | | Type: | `boolean` | | Default: | `false` | | Desc: | Lorem ipsum. | -->

concat

Use by

License

MIT © chinanf-boy