A set of tools to communicate with observablehq.com:
npm install mootari/observable-client
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);
})();