1.0.1 • Published 9 years ago

csonify v1.0.1

Weekly downloads
10
License
ISC
Repository
github
Last release
9 years ago

A Browserify Transform for CSON

Csonify lets you use CSON files with browserify in the simplest way possible:

var config = require('./config.cson')

Setup

When creating your browserify bundle, just add this line:

var csonify = require('csonify')
bundle.transform(csonify)

or in command line

browserify -t csonify entry.js -o bundle.js

For convenience reason, CSON is in the return module: var csonify = require('csonify') csonify.CSON.parse('things')