Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

generate-object-property

1.2.0 • Public • Published

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

Keywords

none

Install

npm i generate-object-property

DownloadsWeekly Downloads

1,506,155

Version

1.2.0

License

MIT

Last publish

Collaborators

  • avatar