prettycli

WebJar for prettycli

License

License

MIT
Categories

Categories

CLI User Interface
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

prettycli
Last Version

Last Version

1.4.3
Release Date

Release Date

Type

Type

jar
Description

Description

prettycli
WebJar for prettycli
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/siddharthkp/prettycli

Download prettycli

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/prettycli/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>prettycli</artifactId>
    <version>1.4.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/prettycli/
implementation 'org.webjars.npm:prettycli:1.4.3'
// https://jarcasting.com/artifacts/org.webjars.npm/prettycli/
implementation ("org.webjars.npm:prettycli:1.4.3")
'org.webjars.npm:prettycli:jar:1.4.3'
<dependency org="org.webjars.npm" name="prettycli" rev="1.4.3">
  <artifact name="prettycli" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='prettycli', version='1.4.3')
)
libraryDependencies += "org.webjars.npm" % "prettycli" % "1.4.3"
[org.webjars.npm/prettycli "1.4.3"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : chalk jar [2.1.0]

Project Modules

There are no modules declared in this project.



Pretty print messages on the terminal

Usage

// Require what you need from prettycli

const {info, warn} = require('prettycli');

/*

  There are 6 functions:

  Print to stdout:
  1. info: (label, message)
  2. loading: (label, message)
  3. warn: (message)
  4. error: (message)

  Returns pretty string (does not print)
  5. command: (command)
  6. link: (url)

*/

if (!process.env.PRODUCTION) info('BUILD', 'Running dev stuff');
else warn('This is production mode! Are you sure?');

 

license

MIT © siddharthkp

Versions

Version
1.4.3