brackets2dots.js
v0.7.0
Published
Convert string with bracket notation to dot property notation for Node.js and the browser.
Downloads
23
Maintainers
Readme
brackets2dots.js
Convert string with bracket notation to dot property notation for Node.js and the browser.
Example
brackets2dots('group[0].section.a.seat[3]')
//=> 'group.0.section.a.seat.3'
Installation
$ component install wilmoore/brackets2dots.js
$ bower install brackets2dots.js
$ volo add wilmoore/brackets2dots.js
download
% curl -#O https://raw.github.com/wilmoore/brackets2dots.js/master/brackets2dots.js
use
<script src="brackets2dots.js"></script>
Inspiration
License
MIT