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

@tryghost/pretty-cli

Package Overview
Dependencies
Maintainers
30
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryghost/pretty-cli - npm Package Compare versions

Comparing version
3.0.3
to
3.1.0
+4
-4
lib/pretty-cli.js

@@ -12,6 +12,6 @@ const Api = require('sywac/api');

module.exports = Api.get()
// Use help & version with short forms AND
// group them into a Global Options group to keep them separate from per-command options
.help('-h, --help', {group: 'Global Options:'})
.version('-v, --version', {group: 'Global Options:'})
// Use help & version with short forms AND
// group them into a Global Options group to keep them separate from per-command options
.help('-h, --help', { group: 'Global Options:' })
.version('-v, --version', { group: 'Global Options:' })
// Load our style rules

@@ -18,0 +18,0 @@ .style(styles)

@@ -1,2 +0,2 @@

const {default: chalk} = require('chalk');
const { default: chalk } = require('chalk');

@@ -9,14 +9,14 @@ module.exports = {

// Options: Arguments: etc
group: str => chalk.yellow(str),
group: (str) => chalk.yellow(str),
// --help etc
flags: str => chalk.green(str),
flags: (str) => chalk.green(str),
// [required] [boolean] etc
hints: str => chalk.dim(str),
hints: (str) => chalk.dim(str),
// Use different style when a type is invalid
groupError: str => chalk.red(str),
flagsError: str => chalk.red(str),
descError: str => chalk.yellow(str),
hintsError: str => chalk.red(str),
groupError: (str) => chalk.red(str),
flagsError: (str) => chalk.red(str),
descError: (str) => chalk.yellow(str),
hintsError: (str) => chalk.red(str),
// style error messages
messages: str => chalk.red(str)
messages: (str) => chalk.red(str),
};

@@ -1,2 +0,2 @@

const {default: chalk} = require('chalk');
const { default: chalk } = require('chalk');
const log = (...args) => console.log(...args); // eslint-disable-line no-console

@@ -3,0 +3,0 @@

{
"name": "@tryghost/pretty-cli",
"version": "3.0.3",
"version": "3.1.0",
"description": "A mini-module to style a sywac instance in a standard way",
"license": "MIT",
"author": "Ghost Foundation",
"repository": {

@@ -10,11 +12,2 @@ "type": "git",

},
"author": "Ghost Foundation",
"license": "MIT",
"main": "index.js",
"scripts": {
"dev": "echo \"Implement me!\"",
"test": "NODE_ENV=testing vitest run --coverage --config ../../vitest.config.ts",
"lint": "eslint . --ext .js --cache",
"posttest": "yarn lint"
},
"files": [

@@ -24,12 +17,19 @@ "index.js",

],
"main": "index.js",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"sinon": "21.0.2"
},
"dependencies": {
"chalk": "5.6.2",
"sywac": "1.3.0"
},
"devDependencies": {
"sinon": "21.1.2"
},
"scripts": {
"dev": "echo \"Implement me!\"",
"test": "NODE_ENV=testing vitest run --coverage --config ../../vitest.config.ts",
"lint": "oxlint -c ../../.oxlintrc.json .",
"posttest": "pnpm run lint"
}
}
}

@@ -9,3 +9,3 @@ # Pretty CLI

Or: `yarn add @tryghost/pretty-cli`
Or: `pnpm add @tryghost/pretty-cli`

@@ -55,4 +55,4 @@ ## Purpose

- `yarn lint` run just eslint
- `yarn test` run lint && tests
- `pnpm lint` runs oxlint
- `pnpm test` runs lint and tests

@@ -59,0 +59,0 @@ # Copyright & License