# backslash

> parse string escapes (\n, \r, etc.)

Latest version **0.2.2** (published 2025-09-13) · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2025-09-13 |
| First published | 2015-06-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Qix |
| Maintainers | qix |
| Keywords | backslash, escape, escaped, parse, convert, raw, string, characters, unicode |

## Links

- npm: https://www.npmjs.com/package/backslash
- Repository: https://github.com/Qix-/node-backslash
- Homepage: https://github.com/Qix-/node-backslash#readme
- Issues: https://github.com/Qix-/node-backslash/issues
- npm.io page: https://npm.io/package/backslash

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2025-09-13
- 0.2.0 — 2016-04-08
- 0.1.7 — 2015-06-26
- 0.1.6 — 2015-06-26
- 0.1.5 — 2015-06-26
- 0.1.0 — 2015-06-26

## README

# Backslash [![Travis-CI.org Build Status](https://img.shields.io/travis/Qix-/node-backslash.svg?style=flat-square)](https://travis-ci.org/Qix-/node-backslash) [![Coveralls.io Coverage Rating](https://img.shields.io/coveralls/Qix-/node-backslash.svg?style=flat-square)](https://coveralls.io/r/Qix-/node-backslash)
Parse collected strings with escapes.

### Example

```javascript
var backslash = require('backslash');

var s = backslash("\\\\\\tHello!\\nThis was escaped.");
/*
\	Hello!
This was escaped.
*/
```

## License
Licensed under the MIT license.

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