split-string:在给定的一个或多个字符上拆分字符串,并支持转义

时间:2021-05-13 16:54:13
【文件属性】:
文件名称:split-string:在给定的一个或多个字符上拆分字符串,并支持转义
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-13 16:54:13
nodejs javascript parser node parse 分割字符串 除非给定字符或引号或转义符,否则将字符串拆分为给定字符的简便方法。 请考虑关注该项目的作者 ,并考虑为该项目以显示您的 :red_heart: 和支持。 安装 使用安装: $ npm install --save split-string 用法 const split = require ( 'split-string' ) ; console . log ( split ( 'a.b.c' ) ) ; //=> ['a', 'b', 'c'] // respects escaped characters console . log ( split ( 'a.b.c\\.d' ) ) ; //=> ['a', 'b', 'c.d'] // respects double-quoted strings console . log ( split ( 'a."b.c.d".e' ) ) ; //
【文件预览】:
split-string-master
----.gitignore(302B)
----README.md(8KB)
----.verb.md(4KB)
----CHANGELOG.md(4KB)
----example.js(2KB)
----test()
--------options.keep.js(534B)
--------options.separator.js(1KB)
--------test.js(694B)
--------options.quotes.js(4KB)
--------options.brackets.js(2KB)
----LICENSE(1KB)
----.gitattributes(128B)
----package.json(1KB)
----index.js(4KB)
----types()
--------test.ts(861B)
--------tsconfig.json(221B)
--------tslint.json(98B)
--------index.d.ts(713B)
----.travis.yml(141B)
----.editorconfig(289B)
----.eslintrc.json(4KB)
----.npmrc(19B)

网友评论