0.1.1 • Published 5 years ago

cambridge-dictionary v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

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

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."
              ]
            },
            ...
*/
0.1.1

5 years ago

0.1.0

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago