Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi %!s(int64=6) %!d(string=hai) anos
..
.npmignore cefd1c2ad0 updated sys and created publi %!s(int64=6) %!d(string=hai) anos
.travis.yml cefd1c2ad0 updated sys and created publi %!s(int64=6) %!d(string=hai) anos
LICENSE cefd1c2ad0 updated sys and created publi %!s(int64=6) %!d(string=hai) anos
README.md cefd1c2ad0 updated sys and created publi %!s(int64=6) %!d(string=hai) anos
index.js cefd1c2ad0 updated sys and created publi %!s(int64=6) %!d(string=hai) anos
package.json cefd1c2ad0 updated sys and created publi %!s(int64=6) %!d(string=hai) anos
test.js cefd1c2ad0 updated sys and created publi %!s(int64=6) %!d(string=hai) anos

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