Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/calvein/csonify

A browserify transform for turning .cson files into .json
https://github.com/calvein/csonify

Last synced: 23 days ago
JSON representation

A browserify transform for turning .cson files into .json

Awesome Lists containing this project

README

        

# A Browserify Transform for CSON

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

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

## Setup

When creating your browserify bundle, just add this line:

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

or in command line

```js
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')`

[CSON]: https://github.com/bevry/cson
[browserify]: https://github.com/substack/node-browserify