1.0.0 • Published 6 years ago

shift-codegen-cli v1.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

Shift codegen CLI

Command line tool to generate JavaScript source code from a JSON Shift AST.

Install

$ npm install -g shift-codegen-cli

Usage

Usage: shift-codegen ast.json

# using shift-query to generate a suitable JSON AST
$ shift-query -j example.js Script > ast.json
# regenerating JavaScript source code from that JSON with shift-codegen
$ shift-codegen ast.json

If a script is piped to shift-codegen then all arguments are ignored

$ cat ast.json | shift-codegen