Gathering detailed insights and metrics for tdigest-sd
Gathering detailed insights and metrics for tdigest-sd
Gathering detailed insights and metrics for tdigest-sd
Gathering detailed insights and metrics for tdigest-sd
npm install tdigest-sd
Typescript
Module System
Node Version
NPM Version
73.3
Supply Chain
85.2
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
7 Commits
2 Branches
1 Contributors
Updated on Mar 21, 2018
Latest Version
1.0.1
Package Id
tdigest-sd@1.0.1
Unpacked Size
27.14 kB
Size
7.59 kB
File Count
7
NPM Version
2.14.12
Node Version
4.2.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This library is based on welch/tdigest and vadimg/js_bintrees. It adds methods for serialization and deserialization for space-efficient JSON storage. For documentation covering standard usage, please consult the welch/tdigest readme and examples. For information on how to use the serialization and deserialization methods, please read on.
To compactly represent a Javascript data structure like a TDigest instance, it is important to consider the storage costs of a JSON stringified object versus a JSON stringified array.
If you wanted to store a student's name and their full time status, for instance, and you didn't care about stringified JSON storage costs, the best way to represent that student is:
{
"name": "Sheri Hodges",
"full_time": false
}
Without unnecessary whitespace, this comes out to 41 characters. If we do care about storage of the serialized representation, a better representation would be
[
"Sheri Hodges", false
]
This comes out to 21 characters. We can make further improvements to serialization/deserialization by serializing all false
values to 0 and all true
values to 1 (as long as the deserialization process knows whether something should be interpreted as a real number or a boolean). So then we have
[
"Sheri Hodges", 0
]
This results in 18 characters.
.serialize()
var tdigest = new TDigest();
// Make changes to tdigest
var compact = JSON.stringify(tdigest.serialize());
// Store contents of `compact` for later use
.deserialize(obj)
var obj = JSON.parse(compact); // See above for how `compact` was created
var tdigest = new TDigest();
tdigest.deserialize(obj);
You can find builds for the browser on the releases page. Look for artifacts like tdigest-X.X.X.min.js where X.X.X
is the version name.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More