find-hanzi
v1.0.11
Published
Get some information about one or more characters.
Downloads
14
Maintainers
Readme
Find Hanzi
Install
npm install find-hanzi
Usage
const findHanzi = require('find-hanzi')
findHanzi('我')
.then(console.log)
.catch(console.error)
// [ {
// hanzi: '我',
// pinyin: 'wǒ',
// pinyinList: ['wǒ'],
// cangjie: '竹手戈',
// cangjieRomanized: 'HQI',
// strokes: '7',
// frequency: '1',
// definition: 'our, us, i, me, my, we'
// } ]
findHanzi('AMYO')
.then(console.log)
.catch(console.error)
// [ {
// hanzi: '是',
// pinyin: 'shì, tí',
// pinyinList: ['shì', 'tí'],
// cangjie: '日一卜人',
// cangjieRomanized: 'AMYO',
// strokes: '9',
// frequency: '1',
// definition: 'indeed, yes, right; to be; demonstrative pronoun, this, that'
// } ]
Related
pinyin-utils
pinyin-split
hsk-words
pinyin-or-hanzi
hanzi-to-pinyin
pinyin-convert
pinyin-rest
pinyin-api
pinyin-bot-core
pinyin-telegram
pinyin-messenger
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.