JSPM

moroz

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 50
  • Score
    100M100P100Q60283F
  • License MIT

Realy COOL deepFreeze

Package Exports

  • moroz

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (moroz) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

moroz

Really COOL deepFreeze

Build Status NPM version

'moroz' is a russian word that means such weather when everything deep freeze

Why?

Because deep-freeze are not maintained from 2012 and it have some important but unhandled issues and PRs. Numerous clones and forks exists but there is no one to solve all problems with object deep-freezing.

Features

  • makes objects deep frozen
  • works well with non enumerable properties
  • works well with symbol-named fields
  • works well with prototype chains
  • works well with circular reference
  • works well with pure objects (with null-prototype)
  • does not stop on nested frozen objects
  • does not crash on nuuls, buffers and old functions

Install

npm i moroz

Usage

const deepFreeze = require('moroz');

deepFreeze(objectToBeDeepFrozen);

License

MIT