How to use chainsaw - 2 common examples

To help you get started, we’ve selected a few chainsaw examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github symbiose / symbiose / usr / lib / brackets / src / extensibility / node / node_modules / decompress-zip / node_modules / binary / index.js View on Github external
};
        
        self.peek = function (cb) {
            offset = 0;
            saw.nest(function () {
                cb.call(this, vars.store);
                this.tap(function () {
                    offset = null;
                });
            });
        };
        
        return self;
    };
    
    var stream = Chainsaw.light(builder);
    stream.writable = true;
    
    var buffers = Buffers();
    
    stream.write = function (buf) {
        buffers.push(buf);
        dispatch();
    };
    
    var vars = Vars();
    
    var done = false, caughtEnd = false;
    stream.end = function () {
        caughtEnd = true;
    };

chainsaw

Build chainable fluent interfaces the easy way... with a freakin' chainsaw!

MIT/X11
Latest version published 13 years ago

Package Health Score

65 / 100
Full package analysis

Popular chainsaw functions