Socket
Socket
Sign inDemoInstall

@nodesecure/cli

Package Overview
Dependencies
260
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0-0

dist/avatar-default.png

37

package.json
{
"name": "@nodesecure/cli",
"version": "1.0.0",
"version": "2.0.0-0",
"description": "Node.js security CLI",

@@ -58,29 +58,30 @@ "main": "./bin/index.js",

"devDependencies": {
"@myunisoft/httpie": "^1.4.0",
"@nodesecure/eslint-config": "^1.3.1",
"@myunisoft/httpie": "^1.8.0",
"@nodesecure/eslint-config": "^1.4.1",
"@nodesecure/size-satisfies": "^1.0.2",
"@nodesecure/vis-network": "^1.1.0",
"@types/node": "^17.0.14",
"c8": "^7.11.0",
"@nodesecure/vis-network": "^1.3.0",
"@types/node": "^17.0.40",
"c8": "^7.11.3",
"cross-env": "^7.0.3",
"esbuild": "^0.14.17",
"eslint": "^8.8.0",
"list.js": "^2.3.1",
"esbuild": "^0.14.42",
"eslint": "^8.17.0",
"pkg-ok": "^2.3.1",
"pretty-bytes": "^5.6.0",
"split2": "^4.1.0",
"tape": "^5.5.0"
"tape": "^5.5.3"
},
"dependencies": {
"@nodesecure/flags": "^2.2.0",
"@nodesecure/i18n": "^1.2.1",
"@nodesecure/npm-registry-sdk": "^1.3.0",
"@nodesecure/scanner": "^3.3.0",
"@nodesecure/documentation-ui": "^1.2.1",
"@nodesecure/flags": "^2.4.0",
"@nodesecure/i18n": "^2.0.0",
"@nodesecure/npm-registry-sdk": "^1.4.0",
"@nodesecure/scanner": "^3.6.0",
"@nodesecure/utils": "^1.0.0",
"@nodesecure/vuln": "^1.5.0",
"@nodesecure/vuln": "^1.7.0",
"@polka/send-type": "^0.5.2",
"@slimio/async-cli-spinner": "^0.5.2",
"cacache": "^16.1.1",
"cliui": "^7.0.4",
"dotenv": "^15.0.0",
"filenamify": "^5.1.0",
"dotenv": "^16.0.1",
"filenamify": "^5.1.1",
"kleur": "^4.1.4",

@@ -92,3 +93,3 @@ "ms": "^2.1.3",

"sade": "^1.8.1",
"semver": "^7.3.5",
"semver": "^7.3.7",
"sirv": "^2.0.2",

@@ -95,0 +96,0 @@ "zup": "0.0.1"

@@ -175,3 +175,3 @@ <p align="center"><h1 align="center">

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

@@ -186,11 +186,13 @@

<tr>
<td align="center"><a href="https://mickaelcroquet.fr"><img src="https://avatars2.githubusercontent.com/u/23740372?v=4" width="100px;" alt=""/><br /><sub><b>Haze</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/commits?author=CroquetMickael" title="Code">💻</a> <a href="#design-CroquetMickael" title="Design">🎨</a></td>
<td align="center"><a href="https://www.linkedin.com/in/thomas-gentilhomme/"><img src="https://avatars3.githubusercontent.com/u/4438263?v=4" width="100px;" alt=""/><br /><sub><b>fraxken</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/commits?author=fraxken" title="Code">💻</a> <a href="https://github.com/NodeSecure/cli/issues?q=author%3Afraxken" title="Bug reports">🐛</a> <a href="#blog-fraxken" title="Blogposts">📝</a> <a href="https://github.com/NodeSecure/cli/commits?author=fraxken" title="Tests">⚠️</a> <a href="https://github.com/NodeSecure/cli/commits?author=fraxken" title="Documentation">📖</a> <a href="#design-fraxken" title="Design">🎨</a></td>
<td align="center"><a href="https://stouder.io"><img src="https://avatars2.githubusercontent.com/u/2575182?v=4" width="100px;" alt=""/><br /><sub><b>Xavier Stouder</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/commits?author=Xstoudi" title="Code">💻</a> <a href="#design-Xstoudi" title="Design">🎨</a> <a href="https://github.com/NodeSecure/cli/commits?author=Xstoudi" title="Documentation">📖</a></td>
<td align="center"><a href="http://tonygo.dev"><img src="https://avatars0.githubusercontent.com/u/22824417?v=4" width="100px;" alt=""/><br /><sub><b>Tony Gorez</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/commits?author=tony-go" title="Code">💻</a> <a href="https://github.com/NodeSecure/cli/commits?author=tony-go" title="Documentation">📖</a> <a href="https://github.com/NodeSecure/cli/pulls?q=is%3Apr+reviewed-by%3Atony-go" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="https://mickaelcroquet.fr"><img src="https://avatars2.githubusercontent.com/u/23740372?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Haze</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/commits?author=CroquetMickael" title="Code">💻</a> <a href="#design-CroquetMickael" title="Design">🎨</a></td>
<td align="center"><a href="https://www.linkedin.com/in/thomas-gentilhomme/"><img src="https://avatars3.githubusercontent.com/u/4438263?v=4?s=100" width="100px;" alt=""/><br /><sub><b>fraxken</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/commits?author=fraxken" title="Code">💻</a> <a href="https://github.com/NodeSecure/cli/issues?q=author%3Afraxken" title="Bug reports">🐛</a> <a href="#blog-fraxken" title="Blogposts">📝</a> <a href="https://github.com/NodeSecure/cli/commits?author=fraxken" title="Tests">⚠️</a> <a href="https://github.com/NodeSecure/cli/commits?author=fraxken" title="Documentation">📖</a> <a href="#design-fraxken" title="Design">🎨</a></td>
<td align="center"><a href="https://stouder.io"><img src="https://avatars2.githubusercontent.com/u/2575182?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Xavier Stouder</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/commits?author=Xstoudi" title="Code">💻</a> <a href="#design-Xstoudi" title="Design">🎨</a> <a href="https://github.com/NodeSecure/cli/commits?author=Xstoudi" title="Documentation">📖</a></td>
<td align="center"><a href="http://tonygo.dev"><img src="https://avatars0.githubusercontent.com/u/22824417?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tony Gorez</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/commits?author=tony-go" title="Code">💻</a> <a href="https://github.com/NodeSecure/cli/commits?author=tony-go" title="Documentation">📖</a> <a href="https://github.com/NodeSecure/cli/pulls?q=is%3Apr+reviewed-by%3Atony-go" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="https://github.com/abdellah-housni"><img src="https://avatars.githubusercontent.com/u/39569278?v=4?s=100" width="100px;" alt=""/><br /><sub><b>abdellah-housni</b></sub></a><br /><a href="https://github.com/NodeSecure/cli/issues?q=author%3Aabdellah-housni" title="Bug reports">🐛</a></td>
</tr>
</table>
<!-- markdownlint-enable -->
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

@@ -197,0 +199,0 @@

@@ -0,0 +0,0 @@ // Import Node.js Dependencies

@@ -17,6 +17,6 @@ // Import Node.js Dependencies

const rawAnalysis = await fs.readFile(dataFilePath, { encoding: "utf-8" });
const { rootDepencyName, dependencies } = JSON.parse(rawAnalysis);
const { rootDependencyName, dependencies } = JSON.parse(rawAnalysis);
const ui = cliui();
const title = `${white().bold(`${i18n.getToken("ui.stats.title")}:`)} ${cyan().bold(rootDepencyName)}`;
const title = `${white().bold(`${i18n.getToken("ui.stats.title")}:`)} ${cyan().bold(rootDependencyName)}`;
ui.div(

@@ -23,0 +23,0 @@ { text: title, width: 50 }

@@ -13,6 +13,8 @@ /* eslint-disable no-sync */

// Import Internal Dependencies
import * as root from "./root.js";
import * as data from "./data.js";
import * as flags from "./flags.js";
import * as bundle from "./bundle.js";
import * as root from "./endpoints/root.js";
import * as data from "./endpoints/data.js";
import * as flags from "./endpoints/flags.js";
import * as config from "./endpoints/config.js";
import * as bundle from "./endpoints/bundle.js";
import * as npmDownloads from "./endpoints/npm-downloads.js";
import * as middleware from "./middleware.js";

@@ -32,2 +34,6 @@

httpServer.get("/data", data.get);
httpServer.get("/data", data.get);
httpServer.get("/config", config.get);
httpServer.put("/config", config.save);
httpServer.get("/flags", flags.getAll);

@@ -37,2 +43,3 @@ httpServer.get("/flags/description/:title", flags.get);

httpServer.get("/bundle/:pkgName/:version", bundle.get);
httpServer.get("/downloads/:pkgName", npmDownloads.get);

@@ -39,0 +46,0 @@ httpServer.listen(httpConfigPort, () => {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc