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

0.2.5 • Public • Published

Unofficial SpanishDict API

npm version

sdapi provides an unofficial node.js API to get translations and conjugations from SpanishDict.com.

Usage

import sdapi from 'sdapi';

sdapi.translate('libro').then(console.log);
sdapi.conjugate('hacer').then(console.log);

Or in CommonJS style:

const translate = require('sdapi').default.translate;
translate('libro').then(console.log);

Development

After cloning this repository, please run npm install to install all the development dependencies.

This project is developed using TypeScript, which means you need to compile the source code. This can be done by npm run build. Unit tests are written with Jest and can be run with npm run test.

CLI

There are two dummy simiple CLI clients bundled in this repository, sd-translate and sd-conjugate for translations and conjugations respectively.

Readme

Keywords

Package Sidebar

Install

npm i sdapi

Weekly Downloads

0

Version

0.2.5

License

BSD-3-Clause

Unpacked Size

84.2 kB

Total Files

21

Last publish

Collaborators

  • symeonhuang