Skip to content

Instantly share code, notes, and snippets.

View olih's full-sized avatar

Olivier Huin olih

View GitHub Profile
@olih
olih / coffeetojson.sh
Last active December 16, 2015 21:50 — forked from aral/coffeetojson.sh
Converts a coffee-json file to json as an alias. Requires node.js and coffeescript.
View coffeetojson.sh
#On MacOS, adds this to your .bash_profile
function json { coffee --print --bare $1.coffee | sed '1s/&.//' | sed 's/});/}/' | sed 's/({/{/' | sed "s/\([^ '\"].*[^ '\"]\): /\"\1\": /1" > $1.json ;}
export -f json