@socketsecurity/cli 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,26 @@
1
1
  # Socket CLI
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@socketsecurity/cli.svg?style=flat)](https://www.npmjs.com/package/@socketsecurity/cli)
4
+ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/SocketDev/eslint-config)
5
+ [![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
6
+
7
+ CLI tool for [Socket.dev](https://socket.dev/)
8
+
9
+ ## Usage
10
+
11
+ ```bash
12
+ npm install -g @socketsecurity/cli
13
+ ```
14
+
15
+ ```bash
16
+ socket --help
17
+ socket info webtorrent@1.9.1
18
+ socket report create package.json
19
+ ```
20
+
3
21
  ## Commands
4
22
 
23
+ * `info <package@version>` - looks up issues for a package
5
24
  * `report create` - creates a report
6
25
 
7
26
  ## Environment variables
@@ -12,3 +31,9 @@
12
31
 
13
32
  * `SOCKET_SECURITY_API_BASE_URL` - if set, this will be the base for all API-calls. Defaults to `https://api.socket.dev/v0/`
14
33
  * `SOCKET_SECURITY_API_PROXY` - if set to something like [`http://127.0.0.1:9090`](https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries), then all request will be proxied through that proxy
34
+
35
+ ## See also
36
+
37
+ * [`@socketsecurity/sdk`]('https://github.com/SocketDev/socket-sdk-js") - the SDK used in this CLI
38
+ * [Socket API Reference](https://docs.socket.dev/reference) - the API used in this CLI
39
+ * [Socket GitHub App](https://github.com/apps/socket-security) - the plug-and-play GitHub App
@@ -78,7 +78,6 @@ const run = async (argv, importMeta, { parentName }) => {
78
78
 
79
79
  const pkgName = rawPkgName.slice(0, versionSeparator)
80
80
  const pkgVersion = rawPkgName.slice(versionSeparator + 1)
81
- console.log('sdfd', pkgName, pkgVersion)
82
81
 
83
82
  if (!pkgVersion) {
84
83
  throw new InputError('Need to specify a version, like eg: webtorrent@1.0.0')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI tool for Socket.dev",
5
5
  "homepage": "http://github.com/SocketDev/socket-commando",
6
6
  "repository": {