Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/calvein/csonify
- Owner: Calvein
- Created: 2015-02-17T03:02:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-19T04:36:47.000Z (almost 10 years ago)
- Last Synced: 2025-01-17T21:38:29.399Z (23 days ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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