# stringme

> This is a wrapper of JSON stringify that converts also undefined and null to string.

Latest version **1.1.1** (published 2018-03-16) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2018-03-16 |
| First published | 2018-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Fabio Ricali |
| Maintainers | fabioricali |
| Keywords | JSON-stringify, undefined, null, stringify |

## Links

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

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.1 (latest) — 2018-03-16
- 1.1.0 — 2018-03-16
- 1.0.0 — 2018-03-11

## README

# Stringme

This is a wrapper of JSON stringify that converts also undefined and null to string.

<br/>
<a href="https://travis-ci.org/fabioricali/stringme" target="_blank"><img src="https://travis-ci.org/fabioricali/stringme.svg?branch=master" title="Build Status"/></a>
<a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" title="License: MIT"/></a>
<br/><br/><br/>

## Installation
```
npm install --save stringme
```

## Usage
```javascript

const stringme = require('stringme');

stringme(undefined); // "undefined"
stringme(null); // "null"
stringme({a:1}); // {"a":1}
stringme(new Date()); // "2018-03-11T12:48:46.252Z"

// Remove quotes
stringme(null, {quotes: false}); // null

// JSON stringify params see https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
stringme({an:'object'}, {replace: null, space: 2});
```

## Changelog
You can view the changelog <a target="_blank" href="https://github.com/fabioricali/stringme/blob/master/CHANGELOG.md">here</a>

## License
Stringme is open-sourced software licensed under the <a target="_blank" href="http://opensource.org/licenses/MIT">MIT license</a>

## Author
<a target="_blank" href="http://rica.li">Fabio Ricali</a>

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