JSPM

olam

1.0.0-pre.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q19527F
  • License GPL-3.0

An unofficial NPM package for searching words in the Olam dictionary (Supports malayalam and english).

Package Exports

  • olam
  • olam/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (olam) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Olam Dictionary

An unofficial NPM package for searching words in the Olam dictionary (Supports malayalam and english).

Installation

npm install olam@latest

Usage

English-Malayalam

const olam = require('olam');

olam('contrary')
  .then((definitions) => {
    console.log(definitions);
  }).catch((e) => {
    console.error(e);
  });

Output:

[
  {
    title: 'Contrary',
    partOfSpeech: 'വിശേഷണം',
    meaning: 'വിപരീതമായ'
  },
  { 
    title: 'Contrary',
    partOfSpeech: 'വിശേഷണം',
    meaning: 'എതിരായ'
  },
  ...
]

Malayalam-Malayalam

const olam = require('olam');

olam('കാലം')
  .then((definitions) => {
    console.log(definitions);
  }).catch((e) => {
    console.error(e);
  });

Output:

[
  {
    title: 'കാലം',
    partOfSpeech: 'നാ.',
    meaning: 'മഴ'
  },
  {
    title: 'കാലംകഴിക്കുക',
    partOfSpeech: 'നാ.',
    meaning: 'സമയം കഴിച്ചുകൂട്ടുക'
  },
  ...
]

License

This project is licensed under the GPL-3.0 License.