dot-parts
v1.0.1
Published
Split a dot property into its parts
Downloads
105,026
Readme
dot-parts ![Build Status](https://travis-ci.org/bendrucker/dot-parts.svg?branch=master)
Split a dot property into its parts
Install
$ npm install --save dot-parts
Usage
var dotParts = require('dot-parts')
// normal
dotParts('foo.bar.baz')
//=> ['foo', 'bar', 'baz']
// escaping with \\
dotParts('foo\\.bar', 'baz')
//=> ['foo.bar', 'baz']
API
dotParts(path)
-> array[string]
path
Required
Type: string
A dot-delimeted path.
License
MIT © Ben Drucker