Giter Club home page Giter Club logo

package-age's Introduction

package-age build npm coverage

A CLI for detecting old dependencies used in your project

Install

$ npm install package-age --global

Usage

License

GPL-3.0 ยฉ ENT8R

package-age's People

Contributors

ent8r avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

scottzsh

package-age's Issues

Option to force color

It would be nice to able to retain color output even when output is being redirected to pipe or file. I suggest adding an option --color, which when used sets chalk.level to appropriate value.

Great tool btw ๐Ÿ‘

New release needed for npm

I couldn't understand why, when installed via npm, I was getting an exception thrown on use that I could not correspond to the source code here.

Then I noticed the trivially locally resolved error (options was unguarded for undefined on lines 65, 68 and 71 of my local index.js, but the function that provides this argument is called on line 222 without options defined) is not there on this github version, because a release is needed to push the two most recent commits into the npm registry.

In the meantime, for future googlers, my workaround was to locally change lines 65-73 of /usr/local/lib/node_modules/package-age/index.js (of the old 0.2.0 release) as follows:

        if (commander.dev || commander.all || options.dev || options.all) {
          result.devDependencies = await p(pkg.devDependencies, Types.DEV);
        }
        if (commander.peer || commander.all || options.peer || options.all) {
          result.peerDependencies = await p(pkg.peerDependencies, Types.PEER);
        }
        if (commander.bundled || commander.all || options.bundled || options.all) {
          result.bundledDependencies = await p(pkg.bundledDependencies, Types.BUNDLED);
        }

=>

        if (commander.dev || commander.all || (options && (options.dev || options.all))) {
          result.devDependencies = await p(pkg.devDependencies, Types.DEV);
        }
        if (commander.peer || commander.all || (options && (options.peer || options.all))) {
          result.peerDependencies = await p(pkg.peerDependencies, Types.PEER);
        }
        if (commander.bundled || commander.all || (options && (options.bundled || options.all))) {
          result.bundledDependencies = await p(pkg.bundledDependencies, Types.BUNDLED);
        }

Then it works great.

Of course, I could have pulled from git rather than npm, too...

In any case, please do a new release to get npm up to date with your latest commits! ๐Ÿ˜

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.