Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/longnow/node-panlex

node.js client for PanLex
https://github.com/longnow/node-panlex

Last synced: 3 months ago
JSON representation

node.js client for PanLex

Awesome Lists containing this project

README

        

This module provides convenience methods to access the [PanLex API](https://dev.panlex.org/api/).

var panlex = require('panlex');

// use API v1 endpoint (default is v2)
panlex.version(1);

// set User-Agent header with app name and version
panlex.setUserAgent('My application', '0.0.3');

// turn off built-in rate limiting (careful!)
panlex.limit = false;

Callback style:

// do a single request
panlex.query('/langvar', {}, function (err, data) { ... });

// loop until all results are received
panlex.queryAll('/langvar', {}, function (err, data) { ... });