$ gnpm install dot-parts
Split a dot property into its parts
$ npm install --save dot-parts
var dotParts = require('dot-parts')
// normal
dotParts('foo.bar.baz')
//=> ['foo', 'bar', 'baz']
// escaping with \\
dotParts('foo\\.bar', 'baz')
//=> ['foo.bar', 'baz']
dotParts(path)
-> array[string]
Required
Type: string
A dot-delimeted path.
MIT © Ben Drucker
Copyright 2013 - present © cnpmjs.org | Home |