@jodacame/raejs
v1.0.6
Published
Tiny library to access the well-known spanish RAE dictionary programatically.
Downloads
6
Readme
Description
Tiny library to access the well-known spanish RAE dictionary programmatically.
Unofficial Library
Installation
npm i @jodacame/raejs
Usage
const raejs = require('@jodacame/raejs');
const query = 'elefante';
const response = await raejs.search(query);
if(!response.error){
console.log(response.results);
}
Add custom RAE Host
This library skip cloudflare protection sending direct request to RAE server. If you need change host RAE server IP maybe you need use this method.
const raejs = require('@jodacame/raejs');
raejs.addHost('XXX.XXX.XXX.XXX');
...
List Hosts
const raejs = require('@jodacame/raejs');
const hosts = raejs.listHosts();
console.log(hosts);
...
Change host index
const raejs = require('@jodacame/raejs');
raejs.setHost(1);
...