Bachir Soussi Chiadmi ac58a24f5c added bower, gulp 7 years ago
..
.npmignore ac58a24f5c added bower, gulp 7 years ago
.travis.yml ac58a24f5c added bower, gulp 7 years ago
LICENSE ac58a24f5c added bower, gulp 7 years ago
README.md ac58a24f5c added bower, gulp 7 years ago
index.js ac58a24f5c added bower, gulp 7 years ago
package.json ac58a24f5c added bower, gulp 7 years ago
test.js ac58a24f5c added bower, gulp 7 years 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