pinyin_index

A fast Chinese characters to pinyins conversion/romanization tool for indexing use.

Usage no npm install needed!

<script type="module">
  import pinyinIndex from 'https://cdn.skypack.dev/pinyin_index';
</script>

README

pinyin_index

A fast Chinese characters to pinyins conversion/romanization tool for indexing use.

var pinyin_index = require('pinyin_index');
pinyin_index('天生我材必有用,千金散尽还复来。')
// => 
// { full: 'tianshengwocaibiyouyong,qianjinsanjinhuanfulai。',
//   abbr: 'tswcbyy qjsjhfl' }

LICENSE: MIT
Developer: caiguanhao <caiguanhao@gmail.com>