🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

escape-split

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escape-split

Splits a string with delimiters that can be escaped, unassuming parameter values.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

escape-split

Splits a string using a delimiter that can be escaped.

Installation

npm install --save escape-split

Usage

const split = require('escape-split')

const splitSpecific = split({ delimiter: <delimiter>, escaper: <escaper> })
const textArray = splitSpecific(<text>)

Note

As of version 1, escape-split only supports single character delimiters and escape values. However, future versions will support multi-character delimiters and escape sequences. It is therefore recommended that you pass empty strings rather than leave the delimiter and escape parameters undefined to not break your code in the future.

Keywords

strings

FAQs

Package last updated on 29 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts