cirru-writer

Convert JSON representation to Cirru code


Keywords
workflow
License
MIT
Install
npm install cirru-writer@0.3.7

Documentation

Cirru Writer

Converts Cirru AST (which is in JSON) to formatted Cirru code.

Read cirru/ for demos of that compiled from ast/.

Demo: http://repo.cirru.org/writer/

Usage

npm install --save cirru-writer
  • render
{render} = require 'cirru-writer'
cirru = render [['cirru']]
# render :: JSON -> String

Development

Run through all tests:

cirru-script test.cirru

Compile code before sending to npm:

# officially gulp is not support CirruScript
# but by updating node-interpret you may run
gulp script

License

MIT