Bakhtina Sofya b84cb877be 1st comm 3 tygodni temu
..
.npmignore b84cb877be 1st comm 3 tygodni temu
.travis.yml b84cb877be 1st comm 3 tygodni temu
LICENSE b84cb877be 1st comm 3 tygodni temu
README.md b84cb877be 1st comm 3 tygodni temu
index.js b84cb877be 1st comm 3 tygodni temu
package.json b84cb877be 1st comm 3 tygodni temu
test.js b84cb877be 1st comm 3 tygodni temu

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