npm

jsserializer-cson

0.0.1-alpha.0 • Public • Published

jsserializer-cson

NPM version Build Status Coverage Status

A jsserializer adapter for cson-parser

Example

// import the adapter
import cson from 'jsserializer-cson';
// import this library
import serializer from 'jsserializer';
// load in the adapter
let service = serializer(cson);
// provide the serializer options
let options = {};
// serialize
let obj = service.parse('test: 123', options);
let str = service.stringify(obj, options);

Install

NPM

  • Install: npm install --save jsserializer
  • Install: npm install --save jsserializer-cson

API

Property type params Description
extensions getter string[]
parse function (source: string, options: Object)
stringify function (source: Object, options: string)

License

Copyright (c) 2016 https://github.com/orgs/jsserializers/people. All rights reserved.

Licensed under the MIT License. See LICENSE in the project root for license information.

Package Sidebar

Install

npm i jsserializer-cson

Weekly Downloads

1

Version

0.0.1-alpha.0

License

MIT

Last publish

Collaborators

  • pflannery