simple-protocol-generator
v1.0.0
Published
Simple protocol (object with getter / setter) generator
Downloads
4
Readme
Description
Generate an object with setter / getter functions, and a compare function which is aware of the locally stored value (not null, not empty)
Use only with strings.
Usage
var generator = require('simple-protocol-generator');
var person = new generator([
'Username',
'Password',
'Address'
]);
and then, you can call
person.setUsername('lambda');
or
person.getUsername();