ssi-cli

0.0.5 • Public • Published

ssi-cli

Build Status Coverage Status

The command line tool to build files with SSI directives.

Installation

    $ npm install -g ssi-cli 

For test go to module directory and run

    $ npm test

Usage

With output file:

ssi path/to/filename path/to/output

Print to console:

ssi -p path/to/filename  

Example

Structure:

+usage_dir
|--root.ssi
|-+resources/
  |--resource.ssi
  |--other.ssi

For example root.ssi include /resources/resource.ssi and you want print output. Then run example:

ssi -p -d usage_dir root.ssi

Path to the file has root dir ./ by default. You can change the root directory, and then path to the file it should ask for a new path. (-d or --data-path directive)

If you want to use an object with parameters to building files then you can use the object directly in the command line in the parameter object (-o or --object) or by specifying the path (-i or --data-path) to the file containing the object. Accept JSON and CSON formats.

Result call help:

Options:
  -d, --root-path  Root path for include directory     [default: "./"]
  -o, --object     Data in JSON format                 [default: "{}"]
  -i, --data-path  Path to data object file. JSON or CSON file type
                   allowed. `data-path` has higher priority then
                   `object`                                           
  -p, --print      Print output                                       
  -h, --help       This help

Readme

Keywords

Package Sidebar

Install

npm i ssi-cli

Weekly Downloads

4

Version

0.0.5

License

MIT

Last publish

Collaborators

  • egik