@sl-codeblaster/nodejs-madura-api

1.0.2 • Public • Published

Nodejs - Madura API

This package is developed for fetch data from https://maduraonline.com.

All credits should goes to Madura Kulathunga who develop the madura online dictionary.

npm version

Install

npm install @sl-codeblaster/nodejs-madura-api

Demo

Edit 0qx6yljwlv

Example

const http = require("http");
const maduraAPI = require("@sl-codeblaster/nodejs-madura-api");

//create a server object:
http
.createServer(async (req, res) => {
    const result = await maduraAPI.query("name");

    res.send(result);
})
.listen(8080); 

Response

{
    query: 'name',
    source: 'https://www.maduraonline.com',
    credits: 'All credits should goes to Madura Kulathunga who create the Madura Online Dictionary.',
    meanings:[   
        { category: 'n.', meaning: 'අපදේශය' },
        { category: 'n.', meaning: 'අභිධා' },
        { category: 'n.', meaning: 'අභිධානය' },
        { category: 'n.', meaning: 'නම' },
        { category: 'vt.', meaning: 'නම් කරනවා' },
        { category: 'v.', meaning: 'නම් තබනවා' },
        { category: 'n.', meaning: 'නාමය' },
        { category: 'vt.', meaning: 'නියම කරනවා' },
        { category: 'n.', meaning: 'ප්‍රඥප්තිය' },
        { category: 'n.', meaning: 'ප්‍රසිද්ධිය' },
        { category: 'n.', meaning: 'සංඥා කරනවා' },
        { category: 'n.', meaning: 'සංඥාව' },
        { category: 'st.', meaning: 'සන්' },
        { category: 'vt.', meaning: 'සඳහන් කරනවා' } 
    ] 
}

Package Sidebar

Install

npm i @sl-codeblaster/nodejs-madura-api

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4 kB

Total Files

3

Last publish

Collaborators

  • gihan.rangana