Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datamuse

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datamuse - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

4

package.json
{
"name": "datamuse",
"version": "0.0.4",
"description": "node module for the Datamuse API",
"version": "0.0.5",
"description": "node module for the Datamuse API v1",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -9,13 +9,40 @@ ## Install

The Datamuse API is a word-finding query engine for developers.
The official website illustrates the kinds of queries you can make: [Datamuse API](http://www.datamuse.com/api/).
This module helps you to make queries and supports promises.
## Usage
Straight forward approach by providing a query.
```js
const datamuse = require('datamuse');
datamuse.request('words?ml=ringing in the ears')
.then((json) => {
console.log(json);
//do it!
});
```
Use words as shortcut.
```js
datamuse.words({
ml: 'ringing in the ears'
})
.then(console.log)
.catch(console.log);
.then((json) => {
console.log(json);
//do it!
});
```
Use sug as shortcut.
```js
datamuse.sug({
s: 'rawand'
})
.then((json) => {
console.log(json);
//do it!
});
```

@@ -22,0 +49,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc