Narwhals Playing Mahjong
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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 }

Keywords

none

install

npm i private-accessor

Downloadsweekly downloads

11

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar