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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i pull-freezed

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • m-onz