dtmjs

dtm means Do not touch me. It's a library for make some parts of your objects immutable.

Usage no npm install needed!

<script type="module">
  import dtmjs from 'https://cdn.skypack.dev/dtmjs';
</script>

README

Don't touch me JS (dtmJS)

Build Status Coverage Status

A small library to manage the attributes of your objects.

Installation

npm install @jomsdev/dtmjs

Usage

var objectManager = require('@jomsdev/dtmjs');

var obj = {'a': 5, 'b': 7} 

obj = objectManager.freeze(obj);

obj.a = 3 // boom!

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.