mootari / observable-client

MIT License
14 stars 6 forks source link

Observable Client

A set of tools to communicate with observablehq.com:

Install

npm install mootari/observable-client

Example

const {RestClient, AuthGithubPrompt} = require('observable-client');

const client = new RestClient;
(async () => {
  await new AuthGithubPrompt(client, {
    loginName: 'username',
    loginPass: 'password', // Optional. Will be prompted if not provided here.
  }).authorize();

  console.log('authorized', (await client.get('/user')).body);
})();

Roadmap