0.1.0 • Published 9 years ago

blotre-cl-framework v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Blot're simple command line application framework for disposable client apps. Uses Blot're.js to interact with Blot're and make API calls.

The framework can:

  • Register a new disposable client.
  • Prompt the user to redeem the client code.
  • Persist creds.
  • Automatically pick up persisted creds when run again.

Example

var BlotreCl = require('blotre-cl-framework');

// Register a new client application or pick up an existing application.
// Will prompt the user to redeem if needed.
// This returns a promise to a new Blot're client 
BlotreCl({
    "name": "Toa*",
    "blurb": "The Pintrest of toast." })
    .then(function(client) {
        // Now we have a fully authorized client app and can 
        // make Blot're.js calls
        return client.getStream(client.creds.user.rootStream);
    })
    .then(console.log)
    .catch(console.err);
0.1.0

9 years ago

0.0.0

9 years ago