sum11
TypeScript icon, indicating that this package has built-in type declarations

0.3.7 • Public • Published

SUM11

Sum.in.ua site parser. Ukrainian dictionary.

Usage

npm install --save sum11

JavaScript:

import { Article, getExplanation } from 'sum11';

const article = await getExplanation(keyword);

console.log(article.title);
// Output: КІТ
console.log(article.text);
// Output: КІТ, кота, чол. Свійська тварина родини котячих...
console.log(article.alternatives);
// Output: ["кіт", "кит"]
console.log(article.url);
// Output: https://sum.in.ua/s/kit

TypeScript:

import { getExplanation } from 'sum11';

const article = await getExplanation(keyword);

console.log(article?.title);
// Output: КІТ
console.log(article?.text);
// Output: КІТ, кота, чол. Свійська тварина родини котячих...
console.log(article?.alternatives);
// Output: ["кіт", "кит"]
console.log(article.url);
// Output: https://sum.in.ua/s/kit

/sum11/

    Package Sidebar

    Install

    npm i sum11

    Weekly Downloads

    4

    Version

    0.3.7

    License

    ISC

    Unpacked Size

    15.8 kB

    Total Files

    14

    Last publish

    Collaborators

    • jhekasoft