A CLI for detecting old dependencies used in your project
$ npm install package-age --global
GPL-3.0 ยฉ ENT8R
A CLI for detecting old dependencies used in your project
License: GNU General Public License v3.0
A CLI for detecting old dependencies used in your project
$ npm install package-age --global
GPL-3.0 ยฉ ENT8R
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 ๐
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! ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.