Socket
Socket
Sign inDemoInstall

@njakob/cli-utils

Package Overview
Dependencies
4
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @njakob/cli-utils

Collection of utils to build CLI Node based applications


Version published
Weekly downloads
1
Maintainers
1
Install size
143 kB
Created
Weekly downloads
 

Changelog

Source

1.3.1 (2017-05-20)

<a name="1.3.0"></a>

Readme

Source

cli-utils NPM version Build Status ESLint Config Conventional Commits

Collection of utils to build CLI Node based applications.

Features

  • Console reporter

Installation

With NPM:

$ npm install @njakob/cli-utils

With Yarn:

$ yarn add @njakob/cli-utils

Usage

Console Reporter

import { ConsoleReporter } from '@njakob/cli-utils';

const reporter = new ConsoleReporter();

reporter.log(reporter.parse`Something to ${reporter.styles.red`log`}`, 2);
reporter.error(reporter.parse`${reporter.styles.red`Error`}: Something went wrong`);
reporter.success(reporter.parse`Something was a success`);
reporter.warning(reporter.parse`Something went not too good`);
reporter.failure(reporter.parse`Something went totally wrong`);
  • rainbow: String styling helpers inspired by Chalk.

Inspired by

  • ConsoleReporter system used in yarn

Changelog

See changelog.

Licences

njakob/cli-utils is licensed under the MIT License.

Keywords

FAQs

Last updated on 20 May 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc