csonify

1.0.1 • Public • Published

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 -bundle.js

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

Readme

Keywords

Package Sidebar

Install

npm i csonify

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • calvein