An open API service indexing awesome lists of open source software.

https://github.com/scriptnull/cmd-vortex

Transfer files from command line.
https://github.com/scriptnull/cmd-vortex

Last synced: 10 months ago
JSON representation

Transfer files from command line.

Awesome Lists containing this project

README

          

# generate-object-property

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

npm install generate-object-property

[![build status](http://img.shields.io/travis/mafintosh/generate-object-property.svg?style=flat)](http://travis-ci.org/mafintosh/generate-object-property)

## Usage

``` js
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