Socket
Book a DemoInstallSign in
Socket

cli-compiler

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-compiler

Compiler for command line interfaces

latest
Source
npmnpm
Version
0.1.35
Version published
Maintainers
1
Created
Source

Table of Contents

  • Compiler

Compiler

Compiler for the command module, a component of the toolkit.

Compiles markdown program definitions to javascript.

Install

npm i cli-compiler

Test

npm test

Usage

The compiler executes the following phases:

  • Create or initialize a Program instance or subclass (create).
  • Load and execute library modules (libs).
  • Gather source files to merge with parsed program data (sources).
  • Load and concatenate markdown input files (cat).
  • Parse markdown document to tokens (parse).
  • Render markdown tokens into program definition (render).
  • Replace variables in the program strings (replace).
  • Transform the program definition to a module (transform).
  • Write the transformed javascript module to a file (write).
  • Print the javascript document (print).

License

Everything is MIT. Read the license if you feel inclined.

Generated by mdp(1).

Keywords

cli

FAQs

Package last updated on 25 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts