New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

escaping

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escaping

Escape, unescape and split strings by char

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

Escaping

NPM version Build Status Downloads License

Functions for escaping characters and removing escaping.

Russian readme

Install

npm install escaping

Usage

escape()

import { escape } from 'escaping';

let result = escape('1.2.3', '.', '\\'); // '1\\.2\\.3'

unescape()

import { unescape } from 'escaping';

let result = unescape('1\\.2\\.3', '.', '\\'); // '1.2.3'

split()

import { split } from 'escaping';

let result = split('1.2.3', '.', '\\'); // ['1', '2', '3']

Testing

To run tests, use:

npm test

FAQs

Package last updated on 06 Jun 2019

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