![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
freedomjs-anonymized-metrics
Advanced tools
Privacy Preserving metrics reporting, using the rappor algorithm
freedom.js module for anonymized metric collection.
This module encapuslates the logic presented in RAPPOR, a technique for randomize aggregatable privacy-preserving Ordinal responses.
Add anonmetrics.json
as a dependency of your module, using the
metrics
API.
Establish the metrics you want to monitor, and instantiate anonmetrics with this definition. The definition format is described in the Metrics Definition section.
var metrics = freedom.anonMetrics({
"name": "myMetrics",
"definition": {
...
}
});
Create metrics instances as needed, using the defined name.
var metrics = freedom.anonMetrics("myMetrics");
Report a metric values at appropriate points.
metrics.report('successes', 1);
metrics.report('bandwidth', observedBandwidth);
Extract a report of current metric information for use in a report.
metrics.retrieve().then(function(report) {
...
});
A declarative description of how the anonmetrics module should process reported data for your application is passed to the constructor once throughout the modules making up your application. Other instances can report metrics before this definition is provided, so you don't need to worry about race conditions, but the definition does need to be provided in the lifetime of the module or reports will not be saved - since storage will only record statistics and not raw reported values.
The defintion of metrics follow the following format:
"country": {
"type": "string",
},
"connections": {
"type": "logarithmic",
"base": 10
}
Appropriate for positive integer values where the order of magnitude is interesting.
Appropriate for arbitrary strings, where relative frequencies of known exact values can be compared.
Pull requests are happily taken. Automated tests are designed to enforce correctness and code-quality of the repository.
FAQs
Privacy Preserving metrics reporting, using the rappor algorithm
The npm package freedomjs-anonymized-metrics receives a total of 13 weekly downloads. As such, freedomjs-anonymized-metrics popularity was classified as not popular.
We found that freedomjs-anonymized-metrics 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.