# print-value

> Generate a printable representation of a JS value

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

## Install

```sh
npm install print-value
pnpm add print-value
yarn add print-value
bun add print-value
```

## 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-10-12 |
| First published | 2015-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | print, value, json, stringify, js |

## Links

- npm: https://www.npmjs.com/package/print-value
- Repository: https://github.com/bendrucker/print-value
- Homepage: https://github.com/bendrucker/print-value#readme
- Issues: https://github.com/bendrucker/print-value/issues
- npm.io page: https://npm.io/package/print-value

## Dependencies (2)

- [isobject](https://npm.io/package/isobject.md) ~2.0.0
- [json-stringify-safe](https://npm.io/package/json-stringify-safe.md) ~5.0.1

## 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.0.0 (latest) — 2015-10-12

## README

# print-value [![Build Status](https://travis-ci.org/bendrucker/print-value.svg?branch=master)](https://travis-ci.org/bendrucker/print-value)

> Generate a printable representation of a JS value


## Install

```
$ npm install --save print-value
```


## Usage

```js
var print = require('print-value')

print('string')
//=> string

print({foo: 'bar'})
//=> {"foo":"bar"}
```

## API

#### `print(value)` -> `string`

##### value

*Required*  
Type: `any`

Any value to return in printable form. Objects and arrays are stringified using `JSON.stringify`, while other values are coerced to strings.


## License

MIT © [Ben Drucker](http://bendrucker.me)

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