-
-
Save olih/5502956 to your computer and use it in GitHub Desktop.
Converts a coffee-json file to json as an alias. Requires node.js and coffeescript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment