This package has been deprecated

Author message:

This package has been deprecated

@start/cli-lib
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

⬛️ cli-lib

npm linux windows coverage deps

Core CLI lib.

Install

$ yarn add --dev @start/cli-lib
# or
$ npm install --save-dev @start/cli-lib

Usage

Signature

cliLib(options: {
  file?: string,
  preset?: string,
  reporter?: string,
  taskName?: string,
  taskArgs?: string[]
})

Example

import cliLib from '@start/cli-lib'

cliLib({
  file: options.file,
  preset: options.preset,
  reporter: options.reporter,
  taskName: process.argv[2],
  taskArgs: process.argv.slice(3)
}).catch((error) => {
  if (error !== null) {
    console.log(error)
  }

  process.exit(1)
})

Readme

Keywords

Package Sidebar

Install

npm i @start/cli-lib

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

3.11 kB

Total Files

4

Last publish

Collaborators

  • fosimus
  • psxcode
  • deepsweet