npm

escaping

0.1.2 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.23latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.23
0.1.11
0.1.01

Package Sidebar

Install

npm i escaping

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

12.6 kB

Total Files

9

Last publish

Collaborators

  • paulzi