1.0.0 • Published 6 years ago

thendo v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

thendo

Build promise like function chains for the browser and Node.js.

Install

Using Node.js (via npm)

npm install --save thendo

Using Web Brwoser (via unpkg)

<script src="https://unpkg.com/thendo@1.0.0/index.js"></script>

Example

// uncomment if using Node.js
// var thendo = require('thendo');

thendo(function(next) {
    console.log('hello');

    next('hello');
}).thendo(function(next, data) {
    console.log('the last step passed', data);

    next();
}).thendo(function(next, data) {
    console.log('goodbye');

    next();
});

License

thendo is licensed under the open source MIT license. View the LICENSE file for more information.

1.0.0

6 years ago