npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hdr-decode

v1.0.0

Published

command line tool to decode histograms

Downloads

11

Readme

hdr-decode

this simple command line utility decodes hdr-histograms encoded in base64 using the decodeFromCompressedBase64 method.

installation

$ git clone --depth=1 [email protected]:bmacnaughton/hdr-decode.git
$ npm install

or $ npm install hdr-decode

running

$ alias hdr-decode=/path/to/hdr-decode/index.js
$ hdr-decode HISTFAAAACh4nJNpmSzMwMDAwQABTFCaEURcm7yEwf4DROArF1M1230WJgCDWQb1
Int32Histogram {
  autoResize: false,
  startTimeStampMsec: 9007199254740991,
  endTimeStampMsec: 0,
  tag: 'NO TAG',
  integerToDoubleValueConversionRatio: 1,
  identity: NaN,
  highestTrackableValue: 3600000000,
  lowestDiscernibleValue: 1,
  numberOfSignificantValueDigits: 2,
  bucketCount: 25,
  subBucketCount: 256,
  countsArrayLength: 3328,
  wordSizeInBytes: 0,
  maxValue: 22015,
  minNonZeroValue: 2992,
  unitMagnitude: 0,
  lowestDiscernibleValueRounded: 1,
  unitMagnitudeMask: 0,
  subBucketHalfCountMagnitude: 7,
  subBucketHalfCount: 128,
  subBucketMask: 255,
  leadingZeroCountBase: 45,
  percentileIterator:
   PercentileIterator {
     currentIterationValue:
      HistogramIterationValue {
        valueIteratedTo: 0,
        valueIteratedFrom: 0,
        countAtValueIteratedTo: 0,
        countAddedInThisIterationStep: 0,
        totalCountToThisValue: 0,
        totalValueToThisValue: 0,
        percentile: 0,
        percentileLevelIteratedTo: 0 },
     percentileTicksPerHalfDistance: 1,
     percentileLevelToIterateTo: 0,
     percentileLevelToIterateFrom: 0,
     reachedLastRecordedValue: false,
     histogram: [Circular],
     savedHistogramTotalRawCount: undefined,
     arrayTotalCount: undefined,
     currentIndex: 0,
     currentValueAtIndex: 0,
     nextValueAtIndex: 1,
     prevValueIteratedTo: 0,
     totalCountToPrevIndex: 0,
     totalCountToCurrentIndex: 0,
     totalValueToCurrentIndex: 0,
     countAtThisValue: 0,
     freshSubBucket: true },
  recordedValuesIterator:
   RecordedValuesIterator {
     currentIterationValue:
      HistogramIterationValue {
        valueIteratedTo: 0,
        valueIteratedFrom: 0,
        countAtValueIteratedTo: 0,
        countAddedInThisIterationStep: 0,
        totalCountToThisValue: 0,
        totalValueToThisValue: 0,
        percentile: 0,
        percentileLevelIteratedTo: 0 },
     histogram: [Circular],
     savedHistogramTotalRawCount: undefined,
     arrayTotalCount: undefined,
     currentIndex: 0,
     currentValueAtIndex: 0,
     nextValueAtIndex: 1,
     prevValueIteratedTo: 0,
     totalCountToPrevIndex: 0,
     totalCountToCurrentIndex: 0,
     totalValueToCurrentIndex: 0,
     countAtThisValue: 0,
     freshSubBucket: true,
     visitedIndex: -1 },
  totalCount: 5,
  counts: [ { '699': 1 }, { '762': 3 }, { '1067': 1 } ] }
$ hdr-decode -h
Usage: hdr-decode [options...] histogram...

  decodes encoded histograms produced by HdrHistogram

Options [default]:
  -f, --full-array      show zero elements of counts array
  -i, --indexes         preface each histogram with an index number
  -v, --version         show version (v1.0.0)
  -h, --help            show help