Skip to content

Convert string with bracket notation to dot property notation for Node.js and the browser.

License

Notifications You must be signed in to change notification settings

wilmoore/brackets2dots.js

Repository files navigation

brackets2dots.js

Build Status NPM version NPM downloads LICENSE

Convert string with bracket notation to dot property notation for Node.js and the browser.

Example

var brackets2dots = require('brackets2dots');

brackets2dots('group[0].section.a.seat[3]')
//=> 'group.0.section.a.seat.3'

Installation

component

$ component install wilmoore/brackets2dots

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

About

Convert string with bracket notation to dot property notation for Node.js and the browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published