@ipmanlk/madura-api
v1.1.0
Published
Javascript API for the Madura Online Dictionary
Downloads
7
Maintainers
Readme
Madura API
Javascript API for the Madura Online Dictionary
This is just a fun project. All credits should go to Madura Kulatunga for creating Madura Online Dictionary.
Usage
Download node from nodejs.org and install it, if you haven't already.
Then install madura-api using npm or yarn.
npm install @ipmanlk/madura-api --save
Example,
const { search } = require("@ipmanlk/madura-api");
// find Sinhala meanings
search("cat").then(meanings => {
console.log(meanings);
});
// find English meanings
search("අරුත").then(meanings => {
console.log(meanings);
});
If word is not found, it will give an empty array.
Tests
Either of the following should work depending on your preferences.
npm test
or
yarn test
Dependencies
- cheerio