npm install pepebecker/hsk-wordsconst hsk = require('hsk-words')
hsk.get('我')
.then(console.log)
.catch(console.error)
// {
// simplified: '我',
// traditional: '我',
// pinyin: 'wǒ',
// pinyinN: 'wo3',
// definition: 'I; me',
// hsk: 1
// }
hsk.get('喜欢')
.then(console.log)
.catch(console.error)
// {
// simplified: '喜欢',
// traditional: '喜歡',
// pinyin: 'xǐhuan',
// pinyinN: 'xi3huan5',
// definition: 'to like',
// hsk: 1
// }pinyin-utilspinyin-splitfind-hanzicedictmdbgpinyin-or-hanzihanzi-to-pinyinpinyin-convertpinyin-restpinyin-apipinyin-bot-corepinyin-telegrampinyin-messengerpinyin-linepinyin-chromepinyin-clihanzi-cli
If you have a question, found a bug or want to propose a feature, have a look at the issues page.