brackets2dots.js

0.7.0 • Public • Published

brackets2dots.js Build Status Build Status NPM version

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

$ component install wilmoore/brackets2dots.js

bower

$ bower install brackets2dots.js

npm

NPM

volo

$ volo add wilmoore/brackets2dots.js

manual

  1. download

     % curl -#O https://raw.github.com/wilmoore/brackets2dots.js/master/brackets2dots.js
    
  2. use

     <script src="brackets2dots.js"></script>
    

Inspiration

License

MIT

Package Sidebar

Install

npm i brackets2dots.js

Weekly Downloads

11

Version

0.7.0

License

none

Last publish

Collaborators

  • wilmoore