1.0.2 • Published 6 years ago

jisho.js v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

jisho

Node wrapper module with audio support for the Japanese dictionary jisho.org.

Yes, it's been done before but with no easy way to also extract the audio provided from WaniKani.

Installation

npm install jisho.js

API

const jisho = require('jisho.js')

Searching using the API.

const result = await jisho.search(keyword, getAudioUrl)

keyword: Keyword to get results for. getAudioUrl: Should audio download urls be included in results. Defaults to false.

Downloading audio from Jisho. It's good to note that the audio will only be download if there is an exact match of the keyword searched.

const result = await jisho.getAudio(keyword, types, [outputPath], [fileName])

keyword: Keyword to search. types: Array of strings that include audio types to download. Can only be mp3, ogg, or both. outputPath: Location to download audio files to. Defaults to current working directory if not given. filename: Name of the downloaded file. Defaults to keyword if not provided.

License

MIT

1.0.2

6 years ago

1.0.0

6 years ago