dtmjs
dtm means Do not touch me. It's a library for make some parts of your objects immutable.
Last updated 4 years ago by jomsdev .
MIT LICENSE · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dtmjs 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.1                                ...           latest (4 years ago)

2 Versions

  • 0.1.1                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |