@ipmanlk/madura-api

1.1.0 • Public • Published
Madura logo

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

Package Sidebar

Install

npm i @ipmanlk/madura-api

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

5.59 kB

Total Files

6

Last publish

Collaborators

  • ipmanlk