Bolshakova Anna ab21a11190 lab 3 weeks ago
..
.npmignore ab21a11190 lab 3 weeks ago
.travis.yml ab21a11190 lab 3 weeks ago
LICENSE ab21a11190 lab 3 weeks ago
README.md ab21a11190 lab 3 weeks ago
index.js ab21a11190 lab 3 weeks ago
package.json ab21a11190 lab 3 weeks ago
test.js ab21a11190 lab 3 weeks ago

README.md

generate-object-property

Generate safe JS code that can used to reference a object property

npm install generate-object-property

build status

Usage

var gen = require('generate-object-property');
console.log(gen('a','b')); // prints a.b
console.log(gen('a', 'foo-bar')); // prints a["foo-bar"]

License

MIT