npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

npm-dview

v2.0.3

Published

Compare current package.json dependency version numbers with latest remote version number.

Downloads

349

Readme

npm-dview

Build Status Coverage Status Dependency Status devDependency Status

Description

npm-dview is a command line tool for comparing a package.json file's dependency version numbers with the latest remote version number.

It compares both "dependencies" and/or "devDependencies".

It accomplishes this by calling "npm view MODULE_NAME version" for each dependency listed in your package.json file.

Installation

Install the command line tool globally by running:

npm install -g npm-dview

Usage

Usage: npm-dview [options]

Options

-h, --help           output usage information
-v, --version        output the version number
--dep                Show regular dependencies
--dev                Show development dependencies
--peer               Show peer dependencies
--update             Update the package.json file with remote version numbers
--hideLocal          Hide dependencies which local copy same as requestedVersion
--excludeCurrent     Exclude up-to-date packages from the output
--output [type]      Specify the output type [table,json]
--outputFile <file>  the file to write data to
--file <file>        The location of the package.json file

Screenshots

Default Usage:

Default Usage

Help:

Help

List Regular Dependencies Only:

List Regular Dependencies Only

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

  • Version 2.0.3 - Released Apr 11, 2016

    • fixed undefined when using --hideLocal
  • Version 2.0.2 - Released Apr 10, 2016

    • add --hideLocal cli option (thanks @syarul)
  • Version 2.0.1 - Released Apr 9, 2016

    • updating README
    • updating package dependencies
  • Version 2.0.0 - Released Aug 25, 2015

    • adding --excludeCurrent command line option.
  • Version 1.3.0 - Released Aug 16, 2015

    • adding an --outputFile argument
    • adding a progress bar
    • changing the format of the json output
  • Version 1.2.0 - Released Aug 14, 2015

    • Show ticks and crosses in place of boolean (for whether or not version is current)
    • New cli option that allows json to be output instead of a table
  • Version 1.1.2 - Released Nov 17, 2014

    • url test now just checks for presence of '/'
  • Version 1.1.1 - Released Oct 22, 2014

    • url parsing bugfix.
    • stop trying to get remote version for urls.
  • Version 1.1.0 - Released Oct 21, 2014

    • stop processing urls and don't update package.json with ???
  • Version 1.0.0 - Released Aug 4, 2014

    • now processing peerDependencies.
    • changed cli option names.
    • auto updating package.json when --update option is passed.
  • Version 0.3.0 - Released June 2, 2014

    • No longer throwing error when only devDependencies are found
  • Version 0.2.0 - Released May 18, 2013

    • Adding hardcoded column widths
  • Version 0.1.1 - Released May 3, 2013

    • New columns: "Local" and "Current?"
    • Changed column name: "Requested Version" -> "Requested"
    • Changed column name: "Remote Version" -> "Remote"
    • Updating "async" version
  • Version 0.1.0 - Released April 13, 2013

    • Initial Implementation

Todo

  • Add unit tests

  • Show progress bar/message while making remote calls

  • Split cli logic into new file, and expose a function that allows other libraries to use this via require('npm-dview').

See Also

License

Copyright (c) 2013 skratchdot
Licensed under the MIT license.