Socket
Socket
Sign inDemoInstall

dep-date-diff

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dep-date-diff

Outputs all installed packages in a table (or JSON) with the release date of the currently installed version and latest available version.


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

node-dep-date-diff

Outputs all installed packages in a table (or JSON) with the release date of the currently installed version and latest available version.

CLI install and usage

npm i -g dep-date-diff
dep-date-diff [options] # or use ddd alias

  Options:

    -h, --help                   output usage information
    -V, --version                output the version number
    -S --sort [sort properties]  Sorts the table elements, add items in a comma separated list
    -O --only-outdated           Only show dependencies which are out of date

  Examples:

    $ dep-date-diff
    $ dep-date-diff --sort dateDiff
    $ dep-date-diff --sort dateDiff,usedVersionDate
    $ dep-date-diff --only-outdated

Sample output

ddd
[===] 14/rps 100% 0.0s
┌───────────────┬───────────────┬─────────────┬─────────────────┬───────────────┬───────────────────┬──────────┐
│ packageName   │ type          │ usedVersion │ usedVersionDate │ latestVersion │ latestVersionDate │ dateDiff │
├───────────────┼───────────────┼─────────────┼─────────────────┼───────────────┼───────────────────┼──────────┤
│ lodash        │ dependency    │ 3.10.1      │ 2015-08-04      │ 4.17.4        │ 2016-12-31        │ 515 days │
├───────────────┼───────────────┼─────────────┼─────────────────┼───────────────┼───────────────────┼──────────┤
│ express       │ dependency    │ 4.15.3      │ 2017-05-17      │ 4.15.3        │ 2017-05-17        │ 0 days   │
└───────────────┴───────────────┴─────────────┴─────────────────┴───────────────┴───────────────────┴──────────┘

In-code install and usage

npm i -D dep-date-diff
const ddd = require('dep-date-diff');

ddd().then(result => {
  console.log(JSON.stringify(result, null, 2));
/*
  outputs:
  [{
    "packageName": "express",
    "type": "dependency",
    "usedVersion": "4.15.3",
    "usedVersionDate": "2017-05-17",
    "latestVersion": "4.15.3",
    "latestVersionDate": "2017-05-17",
    "dateDiff": "0 days"
  }, {
    "packageName": "lodash",
    "type": "dependency",
    "usedVersion": "3.10.1",
    "usedVersionDate": "2015-08-04",
    "latestVersion": "4.17.4",
    "latestVersionDate": "2016-12-31",
    "dateDiff": "515 days"
  }]
*/
});

Keywords

FAQs

Package last updated on 27 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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