0.5.0 • Published 8 years ago
api-build v0.5.0
api
cli and node module to create, manage and run services
Usage (CLI)
With npm:
npm install api-build -gWith yarn:
yarn global add api-buildThis gives you the api command line program
# Displays usage information
api
# In a fresh directory
api initUsage (node module)
With npm:
npm install api-build --saveWith yarn:
yarn add api-buildconst api = require('api-build');api.create(name, function)
nameis the name of the of the actionfunctionis the code to invoke when this action is run
function is invoked with (data, api)
datais an object containing parameters passed to your actionsapiis an object containingerrorandsuccessmethods to call on completion
