Skip to content

librehat/sdapi

Repository files navigation

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.

About

Unofficial SpanishDict API for Node.JS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages