goatee-rules.js

Dependency Status

     _______  _______  _______  _______  _______  _______
    |    ___||       ||       ||_     _||    ___||    ___|
    |   | __ |   _   ||   _   |  |   |  |   |___ |   |___
    |   ||  ||  |_|  ||  |_|  |  |   |  |    ___||    ___|
    |   |_| ||       ||   _   |  |   |  |   |___ |   |___
    |_______||_______||__| |__|  |___|  |_______||_______|
                                     . ,
                                     (\\
                                  .--, \\__
                                   `-.     *`-.__
                                     |          ')
                                    / \__.-'-, ~;
                                   /     |   { /
                    ._..,-.-"``~"-'      ;    (
                 .;'                    ;'    ´
            ~;,./                      ;'
               ';                     ;'
                ';                 /;'|
                 |    .;._.,;';\   |  |
                 \   /  /       \  |\ |
                  \ || |         | )| )
                  | || |         | || |
            ~~~~~ | \| \  ~~~~~~ | \| \  ~~~~~~~
            "''"' `##`##' "'"''" `##`##' '"''"'"
            '"'"''"'"''"''"''"'"'''"'"'''"''"'"'
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        ______    __   __  ___      _______  _______
       |    _ |  |  | |  ||   |    |    ___||  _____|
       |   |_||_ |  | |  ||   |    |   |___ | |_____
       |    __  ||  |_|  ||   |___ |    ___||_____  |
       |   |  | ||       ||       ||   |___  _____| |
       |___|  |_||_______||_______||_______||_______|

A goatee is the perfect complement for handlebar mustaches. :-{>~

Objective

GoateeRules are the combination of goatee-script and the syntax of inline css-rules.

Example:

test: 1 + 2 * 3 ; /* line-breaks are optional */
an-attribute: 'tester'.replace('r','d') ; aProperty: null

Also see “goatee.js” and “goatee-script.js”.

Installation

$ npm install -g goatee-rules.js

Usage

$ goatee-rules -h

Usage: goatee-rules [statements]... [options]

statements     string passed from the command line to evaluate

Options:
   -r STATEMENT, --run STATEMENT   string passed from the command line to
                                   evaluate
   -h, --help                      display this help message
   -i, --interactive               run an interactive `goatee-rules` read-
                                   execute-print-loop (repl)
   -m MODE, --mode MODE            [c]ompile, [e]valuate, [p]rint, [r]ender
                                   or [s]tringify statements, default:  [eval]
   -c, --compress                  compress the abstract syntax tree (ast)
   --nodejs OPTION                 pass one option directly to the 'node'
                                   binary, repeat for muliple options
   -v, --version                   display the version number and exit

If called without options, `goatee-rules` will run interactive.

Documentation

Read the annotated sources.

Development

Install dependencies …

Run build …

$ npm run build && npm run test && npm run doc

(not tested yet)

Credits go to …