fancy-json-stringify

    1.0.0 • Public • Published

    fancy-json-stringify workflow npm

    A fancy way to convert a JavaScript value to JSON

    This module is a wrapper around JSON.strigify with an EOL. Defaults to no replacer and white space identation of 2.

    Installation

    npm install fancy-json-stringify
    

    Usage

    const fancyJsonStringify = require('fancy-json-stringify')
     
    fancyJsonStringify({hello:'world'})

    Above results with appropriate EOL, which is why it's fancy :P

    {
      "hello": "world"
    }
     

    API

    fancyJsonStringify(value, replacer, space)

    value

    A JavaScript value to be converted.

    replacer

    A function that transforms the results. Defaults to null.

    space

    Adds indentation, white space, and line breaks to the return-value. Defaults to 2.

    License

    MIT (c) Cezar Augusto.

    Install

    npm i fancy-json-stringify

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.18 kB

    Total Files

    4

    Last publish

    Collaborators

    • cezaraugusto