Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/longnow/node-panlex
- Owner: longnow
- License: mit
- Created: 2013-06-26T17:02:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T15:03:44.000Z (over 5 years ago)
- Last Synced: 2024-07-18T08:12:05.750Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 6
- Watchers: 16
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- low-resource-languages - node-panlex - node.js client for PanLex. (Software / Utilities)
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) { ... });