Skip to content

sonnyp/dezony

Repository files navigation

dezony

Build Status js-standard-style

Run a JavaScript function once.

Getting started

npm install dezony


var dezony = require('dezony');

or

<script src="node_modules/dezony/index.js"></script>
var dezony = window.dezony

Usage

// here is a an example of a zony function
// calls back multiple time
function zony (cb) {
  cb()
  cb()
}

delay(cb) // release zony

zony(dezony(function () {
  console.log('called once')
}))

Example

See example.js

Benchmark

See benchmark

Test

npm install standard
npm test

About

Run a JavaScript function once.

Resources

License

Stars

Watchers

Forks

Packages

No packages published