1.0.0-rc.2 • Published 8 years ago

littlefork-cli v1.0.0-rc.2

Weekly downloads
-
License
GPL-3.0
Repository
gitlab
Last release
8 years ago

The Littlefork command line interface

A command line interface to Littlefork. See the Littlefork tutorial on how to use it, or print the help output.

littlefork -h

Installation

npm install -S littlefork-cli

API

parseConfigFile

A basic config file parser.

Parameters

  • path string The path to the configuration file.
  • Throws any Will throw an error if the file is missing or the JSON is invalid.

Returns (Object | Array) The parsed JSON.

parseConfigFileWithExtends

Reads a config file like parseConfigFile, but supports the extends keyword similar to eslint. Only use it on configuration files that contain an object, not an array of objects.

Parameters

  • path string The path to the configuration file.
  • Throws any Will throw an error if the file is missing or the JSON is invalid.

Returns Object The parsed JSON.

mapFiles

Map a config parser over multiple files.

Parameters

  • Throws any Will throw an error if any file is missing or the JSON is invalid.

Returns (Object | Array) The concatenation of all config files. An array if the first config file parses as an array, otherwise and object.

1.0.0-rc.2

8 years ago

1.0.0-rc.1

8 years ago

0.9.7

8 years ago

0.9.6

8 years ago

0.9.5

8 years ago

0.9.4

8 years ago

0.9.3

8 years ago

0.9.2

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago