JSPM

print-value

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1022
  • Score
    100M100P100Q103498F
  • License MIT

Generate a printable representation of a JS value

Package Exports

  • print-value

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (print-value) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

print-value Build Status

Generate a printable representation of a JS value

Install

$ npm install --save print-value

Usage

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