JSPM

dot-parts

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28524
  • Score
    100M100P100Q143796F
  • License MIT

Split a dot property into its parts

Package Exports

  • dot-parts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dot-parts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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