1.1.0 • Published 7 years ago

dotsplit.js v1.1.0

Weekly downloads
51,934
License
MIT
Repository
github
Last release
7 years ago

dotsplit.js

Transform dot-delimited strings to array of strings for Node.js and the browser.

Build Status Code Climate js-standard-style

npm install dotsplit.js --save

You can also use Duo, Bower or download the files manually.

npm stats

npm NPM downloads David

API Example

Split on dot

dotsplit('group.0.section.a.seat.3')
//=> ['group', '0', 'section', 'a', 'seat', '3']

Split on dot preserving escaped characters

dotsplit('01.document\\.png')
//=> ['01', 'document.png']

API

dotsplit(String)

arguments
  • string (String) Dot-delimited string.
returns
  • (Array) Array of strings.

Contributing

SEE: contributing.md

Licenses

GitHub license

1.1.0

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.7.0

9 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.2.0

10 years ago