slice2md

v0.1.1
Compiles Slice files to Markdown.

slice2md npm version Build Status

Compiles Slice files to Markdown.

Installation

$ yarn add slice2md

Usage

Usage: slice2md [options] <file ...>

Options:

  -V, --version         output the version number
  -e, --exclude <file>  File paths or globs to exclude.
  -o, --out-dir <dir>   Directory where to put generated files.
  -h, --help            output usage information

API

import {slice2md} from 'slice2md';

slice2md(options); // Promise<void>;

Options interface:

{
  /**
   * Array of slice file paths or globs.
   */
  files: string[];
  /**
   * Array of file paths or globs to exclude.
   */
  exclude?: string[];
  /**
   * Directory where to put generated files.
   */
  outDir: string;
}
npm i slice2md

Metadata

  • GPL-2.0
  • Whatever
  • Daniel Lytkin
  • released 10/4/2019

Downloads

Maintainers