# generate-string

> Generate a js string safely, that defaults to a single quoted string

Latest version **1.0.1** (published 2024-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install generate-string
pnpm add generate-string
yarn add generate-string
bun add generate-string
```

## 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.1 |
| Published | 2024-09-03 |
| First published | 2024-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/generate-string
- Repository: https://github.com/mafintosh/generate-string
- Issues: https://github.com/mafintosh/generate-string/issues
- npm.io page: https://npm.io/package/generate-string

## Recent versions

- 1.0.1 (latest) — 2024-09-03
- 0.0.0 — 2024-09-03

## README

# generate-string

Generate a js string safely, that defaults to a single quoted string

```
npm install generate-string
```

## Usage

``` js
const generateString = require('generate-string')

console.log(generateString('42')) // '42'
console.log(generateString('"42')) // "\"42"
```

## License

MIT

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