Datathistle API - NodeJS Client

A simple no dependency datathistle API client.
:arrow_forward: Install
Install the package with npm:
$ npm i node-datathistle
:clipboard: Usage
Set an enviroment variable called DATATHISTLE_API_KEY
with your API key, or pass it when invoking.
Setup
const datathistle = new (require('node-datathistle'))()
const datathistle = new (require('node-datathistle'))('YOUR_API_KEY')
Search
See https://api.datathistle.com/assets/doc/#api-Search-Search for available query parameters, responses shown in the docs are in result.data
as shown below.
let result = await datathistle.search({
query: 'Abbey Theatre'
})
console.log(result.status)
console.log(result.quota)
console.log(result.data)
:lock: Testing
$ npm test
:copyright: License
The MIT License (MIT). Please see License File for more information.