node.js client for PanLex
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.txt
README.md
index.js
package-lock.json
package.json

README.md

This module provides convenience methods to access the PanLex 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) { ... });