@socketsecurity/cli 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +20 -2
  3. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Pelle Wessman
3
+ Copyright (c) 2022 Socket Inc
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -20,13 +20,31 @@ socket report create package.json
20
20
 
21
21
  ## Commands
22
22
 
23
- * `info <package@version>` - looks up issues for a package
24
- * `report create` - creates a report
23
+ * `socket info <package@version>` - looks up issues for a package
24
+ * `socket report create` - uploads the specified `package.json` and/or `package-lock.json` to create a report on [socket.dev](https://socket.dev/). If only one of a `package.json`/`package-lock.json` has been specified, the other will be automatically found and uploaded if it exists
25
+
26
+ ## Flags
27
+
28
+ ### Action flags
29
+
30
+ * `--dry-run` - the `socket report create` supports running the command without actually uploading anything. All CLI tools that perform an action should have a dry run flag
31
+
32
+ ### Output flags
33
+
34
+ * `--json` - outputs result as json which you can then pipe into [`jq`](https://stedolan.github.io/jq/) and other tools
35
+ * `--markdown` - outputs result as markdown which you can then copy into an issue, PR or even chat
36
+
37
+ ### Other flags
38
+
39
+ * `--debug` - outputs additional debug output. Great for debugging, geeks and us who develop. Hopefully you will never _need_ it, but it can still be fun, right?
40
+ * `--help` - prints the help for the current command. All CLI tools should have this flag
41
+ * `--version` - prints the version of the tool. All CLI tools should have this flag
25
42
 
26
43
  ## Environment variables
27
44
 
28
45
  * `SOCKET_SECURITY_API_KEY` - if set, this will be used as the API-key
29
46
 
47
+ ## Contributing
30
48
  ### Environment variables for development
31
49
 
32
50
  * `SOCKET_SECURITY_API_BASE_URL` - if set, this will be the base for all API-calls. Defaults to `https://api.socket.dev/v0/`
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI tool for Socket.dev",
5
- "homepage": "http://github.com/SocketDev/socket-commando",
5
+ "homepage": "http://github.com/SocketDev/socket-cli-js",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git://github.com/SocketDev/socket-commando.git"
8
+ "url": "git://github.com/SocketDev/socket-cli-js.git"
9
9
  },
10
10
  "keywords": [],
11
11
  "author": {