a123456789 bff0ff0e1f products il y a 3 ans
..
.npmignore bff0ff0e1f products il y a 3 ans
.travis.yml bff0ff0e1f products il y a 3 ans
LICENSE bff0ff0e1f products il y a 3 ans
README.md bff0ff0e1f products il y a 3 ans
index.js bff0ff0e1f products il y a 3 ans
package.json bff0ff0e1f products il y a 3 ans
test.js bff0ff0e1f products il y a 3 ans

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