Eric Foster 35b96bc934 initial commit 6 years ago
..
.npmignore initial commit 6 years ago
.travis.yml initial commit 6 years ago
LICENSE initial commit 6 years ago
README.md initial commit 6 years ago
index.js initial commit 6 years ago
package.json initial commit 6 years ago
test.js initial commit 6 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