
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Main idea here is to measure the load(require) time for dependencies and devDependencies for your project or module. we also calculate the load(require) time of your module. This give an idea about how much time would it take for your module to be required by the consumer.
Key points:
Just install the module
npm install load-perf -g
Then just run the module on your project or module
load-perf
-h, --help Show help.
-v, --version Outputs the version number.
-p, --package path::String Package json file path. - default: ./package.json
-d, --checkDevDependencies Perf calculation for devDependencies. - default: false
--no-checkDependencies Perf calculation for dependencies. - default: true
You can consume this module programmatically through the Node.js API also.
var loadPerf = require("load-perf");
var defaultOptions = {
package: "./package.json",
checkDevDependencies: false,
checkDependencies: true
};
var performanceData = loadPerf(defaultOptions);
Even if the options are not supplied to the function, we will use the defaults.
All times are in ms.
$ load-perf
Dependencies:
chalk : 21.332987
concat-stream : 16.36361
debug : 13.844468
doctrine : 10.851406
escape-string-regexp : 1.946993
escope : 67.604855
espree : 17.298621
estraverse : 3.452687
estraverse-fb : 8.504899
glob : 18.858194
globals : 3.553849
handlebars : 62.334192
inquirer : 101.852429
file-entry-cache : 1.86819
is-my-json-valid : 9.402158
is-resolvable : 2.927087
js-yaml : 47.601996
lodash.clonedeep : 20.422166
lodash.merge : 25.618057
lodash.omit : 23.293907
minimatch : 6.914903
mkdirp : 1.686758
object-assign : 1.593661
optionator : 27.581543
path-is-absolute : 1.661102
path-is-inside : 1.762264
shelljs : 37.127746
strip-json-comments : 1.587796
text-table : 1.437153
to-double-quotes : 1.988777
to-single-quotes : 1.725977
user-home : 1.437153
xml-escape : 1.249491
Module load time: 278.161939
FAQs
Check load performance of your module and its dependencies
The npm package load-perf receives a total of 2,013 weekly downloads. As such, load-perf popularity was classified as popular.
We found that load-perf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.