split-string-once
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

split-string-once

Split a string only once

Requirements

  • Node.js ≥ 8.9.0

Usage

const splitOnce = require('split-string-once')
const a = splitOnce('abc,def,ghi', ',') // ['abc', 'def,ghi']
const b = splitOnce('abcdefghi', ',') // ['abc,def,ghi']
console.log({a, b})

License

MIT © Hoàng Văn Khải

Readme

Keywords

Package Sidebar

Install

npm i split-string-once

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

1.25 kB

Total Files

4

Last publish

Collaborators

  • khai96_