esparse-cl2
v0.0.2
Published
Parse/generate javasript through STDIN, STDOUT
Downloads
2
Readme
Esparse-cl2
Javascript to/from JSON s-expressions to use with Chlorinate
Usage
echo 'var x = 0;' | esparse-cl2
{"type":"Program","body":[{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"x"},"init":{"type":"Literal","value":0}}],"kind":"var"}]}
echo '{"type":"Program","body":[{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"x"},"init":{"type":"Literal","value":0}}],"kind":"var"}]}' | escodegen-cl2
var x = 0;