Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cson

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cson

CoffeeScript-Object-Notation Parser. Same as JSON but for CoffeeScript objects

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
46K
decreased by-10.92%
Maintainers
1
Weekly downloads
 
Created
Source

CSON

CoffeeScript-Object-Notation Parser. Same as JSON but for CoffeeScript objects.

Installing

  1. Install Node.js

  2. Install CSON

     npm install cson
    

Using

  • With Node.js in JavaScript

    // Include CSON
    require('coffee-script');
    CSON = require('cson');
    
    // Parse a file
    CSON.parseFile('data.cson', function(err,obj){});
    
    // Parse a string
    CSON.parse(dataStr, function(err,obj){});
    
    // Stringify an object
    CSON.stringify(data, function(err,str){});
    
  • With Node.js in CoffeeScript

    # Include CSON
    CSON = require 'cson'
    
    # Parse a file
    CSON.parseFile 'data.cson', (err,obj) ->
    
    # Parse a string
    CSON.parse dataStr, (err,obj) ->
    
    # Stringify an object
    CSON.stringify data, (err,str) ->
    
    

Learning

To learn more about CSON visit its wiki here

History

  • v0.1 June 2, 2011
    • Initial commit

License

Licensed under the MIT License Copyright 2011 Benjamin Arthur Lupton

Keywords

FAQs

Package last updated on 02 Jun 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc