package
Recursively Object.freeze() objects.
npm install deep-freeze-nodeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.

Recursively Object.freeze() objects.
npm install deep-freeze-node
var freeze = require('deep-freeze-node');
var person = {
name: 'John',
surname: 'Johnson',
age: 26,
address: {
street: '1st Street',
city: 'Los Angeles',
country: 'USA'
},
vehicles: [
'BMW',
'Ferrari',
'Lamborghini'
]
};
person = freeze(person);
person.name = 'Jack';
person.surname = 'Jackson'
John
Johnson
undefined
26
{
street: '1st Street',
city: 'Los Angeles',
country: 'USA'
}
[
'BMW',
'Ferrari',
'Lamborghini'
]
undefinedTo run the test suite, first install the dependencies, then run npm test:
$ npm install
$ npm testDistributed under the MIT License.