0.0.3 • Published 9 years ago

dots2brackets v0.0.3

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

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');