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 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)

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