Website/node_modules/generate-object-property
2015-12-04 02:31:39 -05:00
..
.npmignore Paper rendering works, and news fields get populated correctly now. 2015-12-04 02:31:39 -05:00
.travis.yml Paper rendering works, and news fields get populated correctly now. 2015-12-04 02:31:39 -05:00
index.js Paper rendering works, and news fields get populated correctly now. 2015-12-04 02:31:39 -05:00
LICENSE Paper rendering works, and news fields get populated correctly now. 2015-12-04 02:31:39 -05:00
package.json Paper rendering works, and news fields get populated correctly now. 2015-12-04 02:31:39 -05:00
README.md Paper rendering works, and news fields get populated correctly now. 2015-12-04 02:31:39 -05:00
test.js Paper rendering works, and news fields get populated correctly now. 2015-12-04 02:31:39 -05:00

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