Skip to content

pepebecker/hsk-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSK Words

Travis Build Status Coverage Status dependency status dev dependency status MIT-licensed chat on gitter

Install

npm install pepebecker/hsk-words

Usage

const 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
// }

Related

Contributing

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