Notorious Penguin Magicians

    tson-js

    1.0.0 • Public • Published

    TSON

    Tiny-JSON Stringify And Parse. Reduce JSON Size By ~50%

    Installation

    $ npm install tson-js --offline

    Usage

    Node

    const { parse, stringify } = require('tson-js')
     
    const stringified = stringify({ key: 'value'})
     
    console.log(stringified)
     
    const parsed = parse(stringified)
     
    console.log(parsed)

    Browser

    <script src="https://unpkg.com/tson-js@1.0.0/browser.js"></script>
    const { parse, stringify } = TSON
     
    const stringified = stringify({ key: 'value'})
     
    console.log(stringified)
     
    const parsed = parse(stringified)
     
    console.log(parsed)

    Install

    npm i tson-js

    DownloadsWeekly Downloads

    13

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    35.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • slicewire-dev