simple-protocol-generator

1.0.0 • Public • Published

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();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i simple-protocol-generator

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • gyula.weber