Socket
Socket
Sign inDemoInstall

cambridge-dictionary

Package Overview
Dependencies
101
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cambridge-dictionary

An unofficial Cambridge Dictionary API


Version published
Weekly downloads
1
Maintainers
1
Install size
4.47 MB
Created
Weekly downloads
 

Readme

Source

Cambridge Dictionary

This repository fetch and parse Cambridge Dictionary HTML. It provides CLI tools and library output with JSON format.

Try it out!

$ npx cambridge-dictionary lego

Installation

$ yarn global add cambridge-dictionary

Usage

examples

  • Basic
import cambridgeDictionary from '../src';

cambridgeDictionary('hello')
  .then(console.log)
  .catch(console.error);

/*
{
  "word": "hello",
  "explanations": [
    {
      "pos": "exclamation, noun",
      "ipa_uk": "heˈləʊ",
      "ipa_us": "heˈloʊ",
      "senses": [
        {
          "guideWord": "",
          "definations": [
            {
              "level": "A1",
              "domain": "",
              "text": "used when meeting or greeting someone: ",
              "examples": [
                "Hello, Paul. I haven't seen you for ages.",
                "I know her vaguely - we've exchanged hellos a few times.",
                "I just thought I'd call by and say hello.",
                "And a big hello (= welcome) to all the parents who've come to see the show."
              ]
            },
            ...
*/

Keywords

FAQs

Last updated on 25 Jan 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc