@orangemug/oops 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/npm/bin/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Have I got a compromised pacakge in my npm/pnpm/yarn cache?
|
|
4
4
|
|
|
5
|
+
## Why?
|
|
6
|
+
|
|
7
|
+
I kept having to look up the CLI commands to check every time there was a npm package compromise, across the various package managers npm/pnpm/yarn.
|
|
8
|
+
|
|
9
|
+
This does that for me in one-shot and something I can share.
|
|
10
|
+
|
|
5
11
|
## Usage
|
|
6
12
|
|
|
7
13
|
Find out with `oops`
|
|
8
14
|
|
|
9
15
|
```bash
|
|
10
16
|
npx @orangemug/oops --help
|
|
11
|
-
#
|
|
17
|
+
# npx @orangemug/oops <dangerous_package_versions>
|
|
12
18
|
#
|
|
13
19
|
# Example: npx @orangemug/oops '@ctrl/tinycolor:4.1.1' '@ctrl/tinycolor:4.1.2'
|
|
14
20
|
```
|
package/dist/npm/bin/index.js
CHANGED
|
@@ -93,9 +93,9 @@ async function run(packages) {
|
|
|
93
93
|
process.exit(hasErrors ? 1 : 0);
|
|
94
94
|
}
|
|
95
95
|
const HELP_TEXT = `
|
|
96
|
-
|
|
96
|
+
npx @orangemug/oops <dangerous_package_versions>
|
|
97
97
|
|
|
98
|
-
Example:
|
|
98
|
+
Example: npx @orangemug/oops '@ctrl/tinycolor:4.1.1' '@ctrl/tinycolor:4.1.2'
|
|
99
99
|
`.trim();
|
|
100
100
|
const argv = minimist(process.argv.slice(2));
|
|
101
101
|
if (argv._.length < 1 || argv.help || argv.h) {
|