Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Exposes stats about V8 GC after it has been executed.
Create a new instance of the module and subscribe to stats
-events from that:
var gcStats = require('gcstats.js');
gcStats.on('stats', function(stats) {
console.log('GC happened', stats);
});
This will print blobs like this whenever a GC happens:
GC happened { start: 635817864674795,
end: 635817865774643,
gctype: 1,
before:
{ totalHeapSize: 277510912,
totalHeapExecutableSize: 5242880,
usedHeapSize: 273621856,
heapSizeLimit: 1535115264,
totalPhysicalSize: 277510912 },
after:
{ totalHeapSize: 277510912,
totalHeapExecutableSize: 5242880,
usedHeapSize: 273533760,
heapSizeLimit: 1535115264,
totalPhysicalSize: 277510912 } }
gctype can have the following values:
npm install --save gcstats.js
node-gcstats depends on C++ extensions which are compiled when the gc-stats module is installed. Compatibility information can be inspected via the Travis-CI build jobs and the compatibility file.
node-gcstats
was written by @dainis and later adopted by @bripkens.
FAQs
Exposes node v8 garbage collection stats
The npm package gcstats.js receives a total of 15,954 weekly downloads. As such, gcstats.js popularity was classified as popular.
We found that gcstats.js 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.