New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webdict

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdict

Fetch definition/meaning of words from dictionary.com and urbandictionary

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by14.29%
Maintainers
1
Weekly downloads
 
Created
Source

webdict

Fetch definition/meaning of words from dictionary.com and urbandictionary.com

Build Status MITlicensed

Install

npm install --save webdict

Usage

const webdict = require('webdict');
webdict('dictionary', 'broken')
  .then(response => {
  console.log(response);
  /*
  {
    statusCode: '200',
    message: 'success',
    type: 'verb',
    definition: [
      'past participle of break.',
      'reduced to fragments; fragmented.',
      'ruptured; torn; fractured.'
    ],
    source: 'http://dictionary.com'
  }
  */
});
webdict('urbandictionary', 'hello')
  .then(response => {
    console.log(response);
    /*
    {
      statusCode: '200',
      message: 'success',
      type: 'Unknown',
      definition: [
        'what you say when your talking casually with friends and your mom walks in the room',
        'The only word on this site that has nothing to do with [sex] or [drugs]!',
        '1.  A greeting\r\n2.  A for of incredulity'
      ],
      source: 'http://urbandictionary.com'
    }
    */
  });

webdict('urbandictionary', 'thisworddoesnotexistinanydictionary')
  .then(response => {
    console.log(response);
    /*
    {
      statusCode: 403,
      message: 'check the spelling again'
    }
    */
  });
  • webdict-cli - Command line tool using this package.

Keywords

FAQs

Package last updated on 23 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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