private-accessor

1.1.1 • Public • Published

private

Private variables for javascript

npm install --save private-accessor

Example Usage

var $private = require('private-accessor').createAccessor();
 
var foo = {bar: '3'};
$private(foo).secret = 3;
 
console.log(foo);
// { bar: '3' }
 
console.log($private(foo));
// { secret: 3 }

Readme

Keywords

none

Package Sidebar

Install

npm i private-accessor

Weekly Downloads

125

Version

1.1.1

License

MIT

Last publish

Collaborators

  • aantthony