pinyin-bot-core

1.54.0 • Public • Published

Pinyin Bot Core

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

Install

npm install pinyin-bot-core

Usage

const botCore = require('pinyin-bot-core')
 
// Default
botCore.processMessage('你的中文很好啊')
.then(console.log)  // nǐ de zhōng wén hěn hǎo a
 
// Pinyin (/p | /pinyin)
botCore.processMessage('/p 你的中文很好啊')
.then(console.log)  // nǐ de zhōng wén hěn hǎo a
 
botCore.processMessage('/p nǐ de zhōng wén hěn hǎo a')
.then(console.log)  // ni3 de zhong1 wen2 hen3 hao3 a
 
botCore.processMessage('/p ni3 de zhong1 wen2 hen3 hao3 a')
.then(console.log)  // nǐ de zhōng wén hěn hǎo a
 
// Split (/s | /split)
botCore.processMessage('/s nidezhongwenhenhaoa')
.then(console.log)  // ni de zhong wen hen hao a
 
botCore.processMessage('/s nǐdezhōngwénhěnhǎoa')
.then(console.log)  // nǐ de zhōng wén hěn hǎo a
 
botCore.processMessage('/s ni3dezhong1wen2hen3hao3a')
.then(console.log)  // ni3 de zhong1 wen2 hen3 hao3 a

Related

Contributing

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.54.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.54.01
1.53.00
1.52.00
1.51.00
1.50.00
1.49.00
1.48.00
1.47.00
1.46.00
1.45.00
1.44.00
1.43.00
1.42.00
1.41.00
1.40.00
1.39.00
1.38.00
1.37.00
1.36.00
1.35.00
1.34.00
1.33.00
1.32.00
1.31.00
1.30.00
1.29.00
1.28.00
1.27.00
1.26.00
1.25.00
1.24.00
1.23.00
1.22.00
1.21.00
1.20.00
1.19.00
1.18.00
1.17.00
1.16.00
1.15.00
1.14.00
1.13.00
1.12.01
1.11.01
1.10.01
1.9.00
1.8.00
1.7.00
1.6.00
1.5.00
1.4.00
1.3.00
1.2.00
1.1.01
1.0.00

Package Sidebar

Install

npm i pinyin-bot-core

Weekly Downloads

5

Version

1.54.0

License

MIT

Unpacked Size

12.6 kB

Total Files

7

Last publish

Collaborators

  • pepebecker