1.0.0 • Published 6 years ago
kanji-alive v1.0.0
kanji-alive
A wrapper for the Kanji Alive API
Install
npm install kanji-alive
Usage
The kanji-alive
package includes a KanjiAlive
class that allows you to directly
interface with the Kanji search API.
The following is an example of searching for a particular Kanji
const KanjiAlive = require('kanji-alive').default;
var api = new KanjiAlive('API-Key');
api
.search('river')
.then((data) => {
console.log(data);
});
// Example Output:
// [{"kanji":{"character":"川","stroke":3},"radical":{"character":"川","stroke":3,"order":56}},{"kanji":{"character":"河","stroke":8},"radical":{"character":"⺡","stroke":3,"order":76}}]
License
MIT
1.0.0
6 years ago