Socket
Socket
Sign inDemoInstall

dicionario-aberto

Package Overview
Dependencies
29
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dicionario-aberto

Query the [Dicionário Aberto](http://dicionario-aberto.net) project API using a promisified (A+ compliant) interface.


Version published
0
Maintainers
1
Install size
868 kB
Created
Weekly downloads
 

Readme

Source

dicionario-aberto Build Status

Query the Dicionário Aberto project API using a promisified (A+ compliant) interface.

Install

$ npm install --save dicionario-aberto

Usage

The search() and define() methods return promises to the objects deserialized from Dicionário Aberto's JSON responses.

var DicionarioAberto = require('dicionario-aberto')();

DicionarioAberto.define('a')
	.then(function(entry) {
		//=> Object
	});

DicionarioAberto.search({'prefix': 'a'})
	.then(function(results) {
		//=> Object
	});

DicionarioAberto.search({'suffix': 'z'})
	.then(function(results) {
		//=> Object
	});

DicionarioAberto.search({'prefix': 'a', 'suffix': 'z'})
	.then(function(results) {
		//=> Object
	});

DicionarioAberto.search({'like': 'a'})
	.then(function(results) {
		//=> Object
	});

API

dicionarioAberto([options])

Factory function that creates a new Dicionário Aberto client object which provides search() and define() methods to query the Dicionário Aberto API.

options

Can be used to compose the created object.

baseUrl

Type: string
Default: http://dicionario-aberto.net/search-json

Base URL for the Dicionário Aberto RESTful API.

License

MIT © Luís Rodrigues

Keywords

FAQs

Last updated on 05 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc