cson2json
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

cson2json

A super-lightweight library for converting CSON objects to JSON objects.

Features

The only reason for this library's existence is because all other available CSON parsers for JavaScript load the entirety of CoffeeScript for parsing CSON objects, they basically load an entire language for parsing a relatively simple data format. This library on the other hand is tiny, has 0 dependencies, and can work in the browser too.

Install

npm install --save cson2json

Usage

import cson2json from 'cson2json';

const cson = '[foo:true]';
const json = cson2json ( cson ); // => [{ foo: true }]

License

MIT © Fabio Spampinato

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i cson2json

Weekly Downloads

3

Version

2.0.0

License

none

Unpacked Size

34.7 kB

Total Files

33

Last publish

Collaborators

  • fabiospampinato