1.1.0 • Published 4 years ago

@ipmanlk/madura-api v1.1.0

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

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