# quote-unquote

> quote and unquote strings. escapes internal quotes and slashes. Automatically decides whether to use single or double quotes.

Latest version **1.0.0** (published 2015-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install quote-unquote
pnpm add quote-unquote
yarn add quote-unquote
bun add quote-unquote
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-03-12 |
| First published | 2015-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/quote-unquote
- Repository: https://github.com/dominictarr/quote-unquote
- Issues: https://github.com/dominictarr/quote-unquote/issues
- npm.io page: https://npm.io/package/quote-unquote

## Recent versions

- 1.0.0 (latest) — 2015-03-12

## README

# quote-unquote

quote and unquote strings. escapes internal quotes and slashes.
Automatically decides whether to use single or double quotes.

## q = require('quote-unquote')

### q.quote (string)

`foo's bar` => `"foo's bar"`
`"foo's bar"` => `"\"foo's bar\""`
`"\"foo's bar\""` => `"\"\\\"foo's bar\\\"\""`

etc

### q.unquote(quoted_string)

the reverse of the above.

`"foo's bar"` => `foo's bar`
`"\"foo's bar\""` => `"foo's bar"`
`"\"\\\"foo's bar\\\"\""` => `"\"foo's bar\""`

## License

MIT

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