Node package that returns the definition of a word using the RAE dictionary.
yarn add rae.js
or
npm install rae.js
let RAE = require('rae.js');
RAE.search('planetoide').then(definition =>
console.log(definition)
);
That should return something like this:
[
{
"title": "planetoide",
"definition": [
{
"entry": [],
"definition": [
"m. asteroide (‖ cuerpo menor del sistema solar)."
]
}
]
}
]
npm test