vz.property

1.3.0 • Public • Published

NPM

This package uses or may use at some point in the future ECMAScript 6 features. Use it on a compatible environment or transpile it with Traceur, Closure Compiler, es6-transpiler or equivalent. Please note that some of these have flaws and bugs, test your code carefully until you find a suitable tool for your task.

When cloning this repository, put the folder inside another named "node_modules" in order to avoid potential errors related to npm's dependency handling, and then run npm install on it.

No piece of software is ever completed, feel free to contribute and be humble.

vz Property

Sample usage:

 
var Property = require('vz.property'),
    topSecretName = new Property(),
    john;
 
function Person(name){
  this.name = name;
  topSecretName.of(this).value = 'Agent ' + name;
  // == topSecretName.of(this).set('Agent ' + name);
  // == topSecretName.set(this,'Agent ' + name);
}
 
john = new Person('John');
john.name; // John
topSecretName.of(john).value; // Agent John
// == topSecretName.of(john).get();
// == topSecretName.get(john);
 

/vz.property/

    Package Sidebar

    Install

    npm i vz.property

    Weekly Downloads

    1

    Version

    1.3.0

    License

    LGPL-3.0

    Last publish

    Collaborators

    • manvalls