pinyin-split
Split up any kind of Pinyin into an array of syllables.
Last updated 13 hours ago by pepebecker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pinyin-split 
SYNC missed versions from official npm registry.

Pinyin Split

npm version Travis Build Status Greenkeeper badge dependency status dev dependency status MIT-licensed chat on gitter

Install

npm install pinyin-split

Usage

const split = require('pinyin-split')

console.log(split('本:wodemaoxihuanheniunai!'))
// ['wo', 'de', 'mao', 'xi', 'huan', 'he', 'niu', 'nai']

console.log(split('本:wo de mao xihuan he niunai!'))
// ['wo', 'de', 'mao', 'xi', 'huan', 'he', 'niu', 'nai']

// return everything and wrap pinyin into lists
console.log(split('本:ni jiao shenme mingzi?', true, true))
// ['本:'['ni'], ' ', ['jiao'], ' ', ['shen'], ['me'], ' ', ['ming'], ['zi'], '?']

// return everything and don't wrap pinyin into lists
console.log(split('Nǐ huì shuō Yīngwén ma?', true))
// ['Nǐ', ' ', 'huì', ' ', 'shuō', ' ', 'Yīng', 'wén', ' ', 'ma', '?']

Related

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Current Tags

  • 1.124.0                                ...           latest (13 hours ago)

133 Versions

  • 1.124.0                                ...           13 hours ago
  • 1.123.0                                ...           8 days ago
  • 1.122.0                                ...           15 days ago
  • 1.121.0                                ...           22 days ago
  • 1.120.0                                ...           a month ago
  • 1.119.0                                ...           a month ago
  • 1.118.0                                ...           a month ago
  • 1.117.0                                ...           2 months ago
  • 1.116.0                                ...           2 months ago
  • 1.115.0                                ...           2 months ago
  • 1.114.0                                ...           2 months ago
  • 1.113.0                                ...           3 months ago
  • 1.112.0                                ...           3 months ago
  • 1.111.0                                ...           3 months ago
  • 1.110.0                                ...           3 months ago
  • 1.109.0                                ...           3 months ago
  • 1.108.0                                ...           4 months ago
  • 1.107.0                                ...           4 months ago
  • 1.106.0                                ...           4 months ago
  • 1.105.0                                ...           4 months ago
  • 1.104.0                                ...           5 months ago
  • 1.103.0                                ...           5 months ago
  • 1.102.0                                ...           5 months ago
  • 1.101.0                                ...           5 months ago
  • 1.100.0                                ...           6 months ago
  • 1.99.0                                ...           6 months ago
  • 1.98.0                                ...           6 months ago
  • 1.97.0                                ...           6 months ago
  • 1.96.0                                ...           6 months ago
  • 1.95.0                                ...           7 months ago
  • 1.94.0                                ...           7 months ago
  • 1.93.0                                ...           8 months ago
  • 1.92.0                                ...           8 months ago
  • 1.91.0                                ...           9 months ago
  • 1.90.0                                ...           9 months ago
  • 1.89.0                                ...           9 months ago
  • 1.88.0                                ...           9 months ago
  • 1.87.0                                ...           9 months ago
  • 1.86.0                                ...           10 months ago
  • 1.85.0                                ...           10 months ago
  • 1.84.0                                ...           10 months ago
  • 1.83.0                                ...           10 months ago
  • 1.82.0                                ...           a year ago
  • 1.81.0                                ...           a year ago
  • 1.80.0                                ...           a year ago
  • 1.79.0                                ...           a year ago
  • 1.78.0                                ...           a year ago
  • 1.77.0                                ...           a year ago
  • 1.76.0                                ...           a year ago
  • 1.75.0                                ...           a year ago
  • 1.74.0                                ...           a year ago
  • 1.73.0                                ...           a year ago
  • 1.72.0                                ...           a year ago
  • 1.71.0                                ...           a year ago
  • 1.70.0                                ...           a year ago
  • 1.69.0                                ...           a year ago
  • 1.68.0                                ...           a year ago
  • 1.67.0                                ...           a year ago
  • 1.66.0                                ...           a year ago
  • 1.65.0                                ...           a year ago
  • 1.64.0                                ...           a year ago
  • 1.63.0                                ...           a year ago
  • 1.62.0                                ...           a year ago
  • 1.61.0                                ...           a year ago
  • 1.60.0                                ...           a year ago
  • 1.59.0                                ...           a year ago
  • 1.58.0                                ...           a year ago
  • 1.57.0                                ...           a year ago
  • 1.56.0                                ...           a year ago
  • 1.55.0                                ...           a year ago
  • 1.54.0                                ...           a year ago
  • 1.53.0                                ...           a year ago
  • 1.52.0                                ...           a year ago
  • 1.51.0                                ...           a year ago
  • 1.50.0                                ...           a year ago
  • 1.49.0                                ...           2 years ago
  • 1.48.0                                ...           2 years ago
  • 1.47.0                                ...           2 years ago
  • 1.46.0                                ...           2 years ago
  • 1.45.0                                ...           2 years ago
  • 1.44.0                                ...           2 years ago
  • 1.43.0                                ...           2 years ago
  • 1.42.0                                ...           2 years ago
  • 1.41.0                                ...           2 years ago
  • 1.40.0                                ...           2 years ago
  • 1.39.0                                ...           2 years ago
  • 1.38.0                                ...           2 years ago
  • 1.37.0                                ...           2 years ago
  • 1.36.0                                ...           2 years ago
  • 1.35.0                                ...           2 years ago
  • 1.34.0                                ...           2 years ago
  • 1.33.0                                ...           2 years ago
  • 1.32.0                                ...           2 years ago
  • 1.31.0                                ...           2 years ago
  • 1.30.0                                ...           2 years ago
  • 1.29.0                                ...           2 years ago
  • 1.28.0                                ...           2 years ago
  • 1.27.0                                ...           2 years ago
  • 1.26.0                                ...           2 years ago
  • 1.25.0                                ...           2 years ago
  • 1.24.0                                ...           2 years ago
  • 1.23.0                                ...           2 years ago
  • 1.22.0                                ...           2 years ago
  • 1.21.0                                ...           2 years ago
  • 1.20.0                                ...           2 years ago
  • 1.19.0                                ...           2 years ago
  • 1.18.0                                ...           2 years ago
  • 1.17.0                                ...           2 years ago
  • 1.16.0                                ...           2 years ago
  • 1.15.0                                ...           2 years ago
  • 1.14.0                                ...           2 years ago
  • 1.13.0                                ...           2 years ago
  • 1.12.0                                ...           2 years ago
  • 1.11.0                                ...           2 years ago
  • 1.10.0                                ...           2 years ago
  • 1.9.0                                ...           2 years ago
  • 1.8.0                                ...           2 years ago
  • 1.7.0                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 19
This Month 68
Last Day 11
Last Week 21
Last Month 136
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |