Skip to content

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

License

Notifications You must be signed in to change notification settings

wilmoore/dotsplit.js

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published