Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    once-uponpublic

    once-upon

    ===========

    Executes a callback at most once upon the first of any number of events.

    example

    var once = require('once-upon'); var E = require('events').EventEmitter;

    onceUpon('SIGINT SIGTERM', process, function(){ console.log('I will be called at most once'); });

    process.emit('SIGTERM'); // "I will be called at most once"

    install

    > npm install once-upon

    License

    MIT

    Keywords

    none

    install

    npm i once-upon

    Downloadsweekly downloads

    22

    version

    0.0.2

    license

    none

    last publish

    collaborators

    • avatar
    • avatar