Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

analyze-deps-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analyze-deps-cli - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

9

index.js

@@ -9,2 +9,3 @@ const fs = require('fs');

const fileExists = require('file-exists');
const logSymbols = require('log-symbols');
const analyzeDeps = require('analyze-deps');

@@ -28,3 +29,3 @@

if (!fileExists(packageJsonPath)) {
printErrorAndExit(`${packageJsonPath} doesn't exist`);
printErrorAndExit(`${path.relative(process.cwd(), packageJsonPath)} doesn't exist`);
}

@@ -98,6 +99,10 @@ } else {

if (errors.length === 0 && notLatest.length === 0) {
console.log(`\n${key} ${chalk.green.bold('✓')}`); // eslint-disable-line no-console
console.log(`\n${key} ${logSymbols.success}`); // eslint-disable-line no-console
return;
}
if (notLatest.length === 0) {
return;
}
const rows = [headers].concat(notLatest.map(packageName => [

@@ -104,0 +109,0 @@ packageName,

{
"name": "analyze-deps-cli",
"version": "0.0.3",
"version": "0.1.0",
"description": "Compare dependencies in package.json to the latest available versions.",

@@ -13,3 +13,3 @@ "repository": {

"test": "nyc mocha test",
"build": "npm run lint",
"build": "npm run lint && npm test",
"preversion": "npm run build",

@@ -27,2 +27,3 @@ "postversion": "git push && git push --tags"

"lodash.sortby": "^4.7.0",
"log-symbols": "^1.0.2",
"minimist": "^1.2.0",

@@ -35,4 +36,7 @@ "strip-ansi": "^3.0.1",

"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"eslint": "^3.7.1",
"execa": "^0.5.0",
"mocha": "^3.1.2",
"mock-require": "^1.3.0",
"nyc": "^8.3.1"

@@ -63,6 +67,6 @@ },

"nyc": {
"lines": 100,
"statements": 100,
"statements": 98,
"branches": 96,
"functions": 100,
"branches": 100,
"lines": 98,
"include": [

@@ -69,0 +73,0 @@ "index.js"

@@ -0,1 +1,6 @@

[![Build Status](https://img.shields.io/codeship/57c45940-71a4-0134-fc58-4aa32a10a3f8/master.svg?style=flat-square)](https://codeship.com/projects/178400)
[![Coverage Status](https://img.shields.io/codecov/c/github/moroshko/analyze-deps-cli/master.svg?style=flat-square)](https://codecov.io/gh/moroshko/analyze-deps-cli)
[![bitHound Overall Score](https://www.bithound.io/github/moroshko/analyze-deps-cli/badges/score.svg)](https://www.bithound.io/github/moroshko/analyze-deps-cli)
[![npm Version](https://img.shields.io/npm/v/analyze-deps-cli.svg?style=flat-square)](https://npmjs.org/package/analyze-deps-cli)
# Analyze Deps CLI

@@ -2,0 +7,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc