# escaping

> Escape, unescape and split strings by char

Latest version **0.1.2** (published 2019-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install escaping
pnpm add escaping
yarn add escaping
bun add escaping
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2019-06-06 |
| First published | 2019-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | paulzi |

## Links

- npm: https://www.npmjs.com/package/escaping
- Repository: https://github.com/paulzi/escaping
- Homepage: https://github.com/paulzi/escaping#readme
- Issues: https://github.com/paulzi/escaping/issues
- npm.io page: https://npm.io/package/escaping

## Recent versions

- 0.1.2 (latest) — 2019-06-06
- 0.1.1 — 2019-02-12
- 0.1.0 — 2019-02-12

## README

# Escaping

[![NPM version](http://img.shields.io/npm/v/escaping.svg?style=flat)](https://www.npmjs.org/package/escaping)
[![Build Status](https://img.shields.io/travis/paulzi/escaping/master.svg)](https://travis-ci.org/paulzi/escaping)
[![Downloads](https://img.shields.io/npm/dt/escaping.svg)](https://www.npmjs.org/package/escaping)
![License](https://img.shields.io/npm/l/escaping.svg)

Functions for escaping characters and removing escaping.

[Russian readme](https://github.com/paulzi/escaping/blob/master/README.ru.md)

## Install

```sh
npm install escaping
```

## Usage

### escape()

```javascript
import { escape } from 'escaping';

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

### unescape()

```javascript
import { unescape } from 'escaping';

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

### split()

```javascript
import { split } from 'escaping';

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

## Testing

To run tests, use:

```sh
npm test
```

---
_Source: https://npm.io/package/escaping · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
