Nothing Particularly Magnificent
    Wondering what’s next for npm?Check out our public roadmap! »

    z-lock

    1.0.0 • Public • Published

    z-lock

    Build Status npm version

    Since it's a CommonJS module, it must be used alongside with Browserify, or something similar, like WebPacker.

    Example, explanation

    var lock = require('z-lock');
    var a_lock = new lock();
     
    a_lock.isLocked(); // returns false
     
    // Let the examples tell the story
    a_lock.lock();
    a_lock.isLocked(); // returns true
     
    a_lock.unLock();
    a_lock.isLocked(); // returns false

    License

    MIT

    Keywords

    Install

    npm i z-lock

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar