Skip to content

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

License

Notifications You must be signed in to change notification settings

cckelly/jisho.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

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

Search using the API.

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

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

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.

License

MIT

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published