@seedalpha/driver
v1.5.11
Published
API driver scaffolding for node and browser
Downloads
3
Readme
Driver
Node.js API driver scaffolding with events, documentation and hooks that works in node and browser
Installation
$ npm install git+ssh://[email protected]:seedalpha/driver.git
Usage
// index.js
var Driver = require('driver');
var driver = new Driver('api');
driver.define('echo', ['message'], function(context) {
context.result(context.params.message);
});
var api = driver.build();
api.echo('Hello', function(error, result) {
console.log(error, result); // null, 'Hello'
});
Author
Vladimir Popov [email protected]
License
MIT