dotsplit.js

2019-02-13 admin

dotsplit.js是什么

什么是dotsplit.js,Transform dot-delimited strings to array of strings for Node.js and the browser.

dotsplit.js使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-53623.html

文章标题:dotsplit.js

回到顶部