virtualproperty
v0.1.0
Published
[![build status][travis-image]][travis-url]
Readme
virtualproperty
Make your simple object to get power of virtual getter or setter like Python do with set get.
Installation
$ npm install virtualpropertyExample
var virtualproperty = require('virtualproperty');
var a = virtualproperty.expose();
a.prototype.__get__ = function (key) {
return 'a';
};
assert(a.a === 'a');
assert(a.b === 'a');Running tests
Install dev deps
$ npm install -dRun the tests
$ npm testLicense
MIT
