dot-parts

1.0.1 • Public • Published

dot-parts Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i dot-parts

Weekly Downloads

23,468

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bendrucker