dots2brackets

0.0.3 • Public • Published

Dots 2 Brackets

converts a dot notation object into a bracket notation. The main goal was to be able to use some variables with angular.

data.example.12345.title

will be converted to

data['example']['12345']['title']

Usage

var dots2brackets = require('dots2brackets'),
    varName = dots2brackets('data.example.12345.title');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i dots2brackets

Weekly Downloads

3

Version

0.0.3

License

none

Last publish

Collaborators

  • enigma-marketing
  • chapmanio
  • melono6