generate-object-property
Generate safe JS code that can used to reference a object property
Last updated 4 months ago by mafintosh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install generate-object-property 
SYNC missed versions from official npm registry.

generate-object-property

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

npm install generate-object-property

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

Current Tags

  • 2.0.0                                ...           latest (4 months ago)

5 Versions

  • 2.0.0                                ...           4 months ago
  • 1.2.0                                ...           10 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE