dot-parts
Split a dot property into its parts
Last updated 9 years ago by bendrucker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install dot-parts 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (9 years ago)

2 Versions

  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |