kubernetes-handbook/node_modules/generate-object-property
Jimmy Song c6db5e8fef
add node modules
2021-04-13 00:24:28 +08:00
..
.npmignore add node modules 2021-04-13 00:24:28 +08:00
.travis.yml add node modules 2021-04-13 00:24:28 +08:00
LICENSE add node modules 2021-04-13 00:24:28 +08:00
README.md add node modules 2021-04-13 00:24:28 +08:00
index.js add node modules 2021-04-13 00:24:28 +08:00
package.json add node modules 2021-04-13 00:24:28 +08:00
test.js add node modules 2021-04-13 00:24:28 +08: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