🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@dimerapp/cli-utils

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dimerapp/cli-utils

Handy utils for Dimer CLI

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
8
100%
Maintainers
1
Weekly downloads
 
Created
Source
Dimer App

Dimer is an open source project and CMS to help you publish your documentation online.


We believe every project/product is incomplete without documentation.
We want to help you publish user facing documentation, without worrying about tools or code to write.


Dimer cli utils

Handy utils for Dimer CLI.

npm-image

There's no need for this package. But I am finding myself creating more small packages, over sticking everything to one repo.

Installation

npm i @dimerapp/cli-utils

# Yarn
yarn add @dimerapp/cli-utils

API

info(message, [newLine])void

Prints info message in yellow color

error(error, [newLine])void

Prints error message in red color

attention(message, [newLine])void

Prints message with Attention label in magenta color

action(action, message)void

Prints action in cyan color with it's message

wrapInBraces(lhs, rhs, [newLine])void

Wrap a statement with lhs and rhs inside braces style

versionsProgress(versions)void

Log updates for multiple versions. The log will re-write on the same lines.

A version node must have.

  • no
  • processed
  • total
filesErrors(basePath, errors)void

Print all errors for multiple files. Errors must be part of vfile messages.

Base path is required to shorten the file names

configErrors(errors)void

Print config errors produced by @dimerapp/config-parser

info(message, [newLine]) ⇒ void

Prints info message in yellow color

Kind: global function

ParamTypeDefault
messageString
[newLine]Booleanfalse

error(error, [newLine]) ⇒ void

Prints error message in red color

Kind: global function

ParamTypeDefault
errorError | String
[newLine]Booleanfalse

attention(message, [newLine]) ⇒ void

Prints message with Attention label in magenta color

Kind: global function

ParamTypeDefault
messageString
[newLine]Booleanfalse

action(action, message) ⇒ void

Prints action in cyan color with it's message

Kind: global function

ParamType
actionString
messageString

wrapInBraces(lhs, rhs, [newLine]) ⇒ void

Wrap a statement with lhs and rhs inside braces style

Kind: global function

ParamTypeDefault
lhsString
rhsString
[newLine]Booleanfalse

versionsProgress(versions) ⇒ void

Log updates for multiple versions. The log will re-write on the same lines.

A version node must have.

  • no
  • processed
  • total

Kind: global function

ParamType
versionsArray

filesErrors(basePath, errors) ⇒ void

Print all errors for multiple files. Errors must be part of vfile messages.

Base path is required to shorten the file names

Kind: global function

ParamType
basePathString
errorsArray

configErrors(errors) ⇒ void

Print config errors produced by @dimerapp/config-parser

Kind: global function

ParamType
errorsArray

Change log

The change log can be found in the CHANGELOG.md file.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors & License

thetutlage and contributors.

MIT License, see the included MIT file.

Keywords

dimer

FAQs

Package last updated on 30 Aug 2018

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