Socket
Socket
Sign inDemoInstall

@ipmanlk/madura-api

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ipmanlk/madura-api

Javascript API for the Madura Online Dictionary


Version published
Weekly downloads
5
increased by400%
Maintainers
1
Install size
5.46 kB
Created
Weekly downloads
 

Readme

Source
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

Keywords

FAQs

Last updated on 28 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc