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.
Install
npm install @sl-codeblaster/nodejs-madura-api
Demo
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: 'සඳහන් කරනවා' }
]
}