1
0
Fork 0
arangodb/js/node/node_modules/eslint/node_modules/generate-object-property
Alan Plum cf302adf26
Always use --global-style when installing npm deps
This partially reverts commit 8a286a30d9.
2016-07-14 16:29:20 +02:00
..
.npmignore Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
.travis.yml Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
LICENSE Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
README.md Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
index.js Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
package.json Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
test.js Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00

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