Nobody Pays (for) Magazines

    pull-freezed

    1.0.2 • Public • Published

    pull-freezed

    pull stream that applies Object.freeze() recursively Build Status

    install

    npm install pull-freezed
    

    example

     
    var pull   = require('pull-stream');
    var freeze = require('pull-freezed');
     
    pull(
        pull.values( [ { a: 'immutable' }  ] ),
        freeze,
        pull.map(function (data) {
            data.a = 'something';
            return data;
        }),
        pull.collect(function (err, result) {
            if (!err) console.log(result); // a === 'immutable'
        })
    );
     
     

    Install

    npm i pull-freezed

    DownloadsWeekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • m-onz