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.
npm install jisho.js
const jisho = require('jisho.js')
Search using the API.
keyword
: Keyword to get results for.
getAudioUrl
: Should audio download urls be included in results. Defaults to false.
Download 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.
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.
MIT