@tryghost/pretty-cli
Advanced tools
Comparing version
{ | ||
"name": "@tryghost/pretty-cli", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A mini-module to style a sywac instance in a standard way", | ||
@@ -23,5 +23,5 @@ "repository": "https://github.com/TryGhost/Ghost-Utils/tree/master/packages/pretty-cli", | ||
"devDependencies": { | ||
"mocha": "6.0.2", | ||
"mocha": "6.1.4", | ||
"should": "13.2.3", | ||
"sinon": "7.3.1" | ||
"sinon": "7.3.2" | ||
}, | ||
@@ -32,3 +32,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "25c937a516e2d8b02d3e6d2236af3bed7afc94bf" | ||
"gitHead": "06195940454f8e482d9507bb150a191813bd49b4" | ||
} |
@@ -35,2 +35,11 @@ # Pretty CLI | ||
Pretty CLI also provides a common UI interface, providing log functions to output coloured messages to the UI: | ||
``` | ||
const ui = require('@tryghost/pretty-cli/ui');` | ||
ui.log.info('Done'); | ||
ui.log.warn('Uh Oh', 'Something went wrong'); | ||
``` | ||
You can also grab a fresh instance of the api with `prettyCLI.Api.get()`. | ||
@@ -37,0 +46,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5412
4.58%56
19.15%