generate-object-property / 1.2.0 last updated a year ago created on May 16th 2014

Install

npm install --save generate-object-property

Clone

git clone git@github.com:mafintosh/generate-object-property.git

dependencies

main is-property 1.0.2 MIT

maintainers

mafintosh mafintosh

versions

1.2.0 a year ago mafintosh
1.1.1 a year ago mafintosh
1.1.0 2 years ago mafintosh
1.0.0 2 years ago mafintosh
124651 Downloads yesterday.

readme

generate-object-property

Generate safe JS code that can used to reference a object property

npm install generate-object-property

build status

Usage

1
2
3
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

Resolving all dependencies.. This could take a while as our cache is not yet fully warmed up.