0.2.6 • Published 5 years ago

diki v0.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Diki

Simple tool for searching in Diki dictionary (eng<-->pol) using web scraping (cheerio) and returning as JSON format.

Instalation

npm install diki

Usage

Example:

const { getContent } = require('diki')

getContent('last')
  .then(console.log)

Result:

{
  "words": [
    {
      "name": "great gt.",
      "speeches": [
        {
          "speechName": "PRZYMIOTNIK",
          "translations": [
            {
              "translation": "wielki, ogromny (na dużą skalę, w dużym zakresie)"
            },
            {
              "translation": "świetny, wspaniały, wielki"
            },
            {
              "translation": "ważny, doniosły"
            },
            {
              "translation": "wielki (używany w tytułowaniu osób)"
            },
            {
              "translation": "hojny, wielki (np. gest)"
            },
            {
              "translation": "doskonały (mający najwyższe umiejętności)"
            },
            {
              "translation": "wielki, potężny (bardzo duży)"
            },
            {
              "translation": "wielki (robiący dużo czegoś)"
            },
            {
              "translation": "wielki (o nadzwyczaj dużych przedstawicielach gatunków zwierząt, roślin)"
            }
          ]
        },
        {
          "speechName": "RZECZOWNIK",
          "translations": [
            {
              "translation": "wielki (znana osoba)"
            }
          ]
        },
        {
          "speechName": "WYKRZYKNIK",
          "translations": [
            {
              "translation": "no świetnie (używane w sytuacji zawodu czymś)"
            }
          ]
        },
        {
          "speechName": "PRZYSŁÓWEK",
          "translations": [
            {
              "translation": "świetnie, wspaniale"
            }
          ]
        }
      ]
    },
    {
      "name": "Great!",
      "speeches": [
        {
          "speechName": "WYKRZYKNIK",
          "translations": [
            {
              "translation": "Świetnie!"
            }
          ]
        }
      ]
    },
    {
      "name": "great-",
      "speeches": [
        {
          "speechName": "PREFIKS",
          "translations": [
            {
              "translation": "pra-"
            }
          ]
        }
      ]
    }
  ],
  "audioUrl": "http://www.diki.pl/images-common/en/mp3/great.mp3"
}
0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago