Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
hdr-histogram-percentiles-obj
Advanced tools
A little lib for turning native-hdr-histograms to objects
npm install --save hdr-histogram-percentiles-obj
const histPercentileObj = require('hdr-histogram-percentiles-obj')
const Histogram = require('native-hdr-histogram')
const histogram = new Histogram(1, 100)
const total = 0
// record some histogram data...
// total++...
const result = histPercentileObj.histAsObj(histogram, total)
const resultWithPercentiles = histPercentileObj.addPercentiles(histogram, histPercentileObj.histAsObj(histogram, total))
hdr-histogram-percentiles-obj has two utility functions to use
histogram
: A native-hdr-histogram object you want to get some values from in a js objecttotal
: the total amount recorded by the histogram, optionalReturns a json object with the min
, max
, average
(mean) and stddev
histogram
: A native-hdr-histogram object you want to retrieve the percentiles fromhistAsObjResult
: the result returned when histAsObj
is called on some native-hdr-histogram objectReturns the histAsObjResult with the percentiles properties added
Kindly sponsored by nearForm
FAQs
A little lib for turning hdr-histogram-js to objects
The npm package hdr-histogram-percentiles-obj receives a total of 367,908 weekly downloads. As such, hdr-histogram-percentiles-obj popularity was classified as popular.
We found that hdr-histogram-percentiles-obj demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.