Bakhtina Sofya b84cb877be 1st comm 3 semanas atrás
..
.npmignore b84cb877be 1st comm 3 semanas atrás
.travis.yml b84cb877be 1st comm 3 semanas atrás
LICENSE b84cb877be 1st comm 3 semanas atrás
README.md b84cb877be 1st comm 3 semanas atrás
index.js b84cb877be 1st comm 3 semanas atrás
package.json b84cb877be 1st comm 3 semanas atrás
test.js b84cb877be 1st comm 3 semanas atrás

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