sdapi
v0.2.5
Published
Unofficial APIs of SpanishDict.com
Downloads
8
Readme
Unofficial SpanishDict API
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.