Skip to content

ansteh/datamuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Install

Using npm:

npm install datamuse

The Datamuse API is a word-finding query engine for developers. The official website illustrates the kinds of queries you can make: Datamuse API. This module helps you to make queries and supports promises.

Usage

Straight forward approach by providing a query.

const datamuse = require('datamuse');

datamuse.request('words?ml=ringing in the ears')
.then((json) => {
  console.log(json);
  //do it!
});

Use words as shortcut.

datamuse.words({
  ml: 'ringing in the ears'
})
.then((json) => {
  console.log(json);
  //do it!
});

Use sug as shortcut.

datamuse.sug({
  s: 'rawand'
})
.then((json) => {
  console.log(json);
  //do it!
});

License

MIT © Andre Stehle

About

node module for the Datamuse API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published