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'
    })
);
 
 

/pull-freezed/

    Package Sidebar

    Install

    npm i pull-freezed

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • m-onz