Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
probe.gl is a JavaScript library designed for logging, benchmarking, and testing in web applications. It provides a suite of tools to help developers measure performance, debug issues, and ensure code quality.
Logging
probe.gl provides a flexible logging system that allows developers to log messages at different levels (log, warn, error). The log messages can be filtered based on their severity.
const {Log} = require('probe.gl');
const log = new Log({id: 'my-app'});
log.log(1, 'This is a log message')();
log.warn('This is a warning message')();
log.error('This is an error message')();
Benchmarking
probe.gl includes a benchmarking tool that helps developers measure the performance of their code. It allows for the addition of multiple tests and provides detailed results after running the benchmarks.
const {Bench} = require('probe.gl');
const bench = new Bench({id: 'my-benchmark'});
bench.add('test1', () => {
// Code to benchmark
});
bench.run().then(results => {
console.log(results);
});
Testing
probe.gl offers a simple testing framework that can be used to write and run tests. It supports assertions and provides a straightforward way to ensure code correctness.
const {Test} = require('probe.gl');
const test = new Test({id: 'my-test'});
test('example test', t => {
t.ok(true, 'This test should pass');
t.end();
});
test.run();
Winston is a versatile logging library for Node.js. It provides a flexible and extensible logging system with support for multiple transports (e.g., console, file, HTTP). Compared to probe.gl, Winston focuses solely on logging and does not include benchmarking or testing features.
Benchmark.js is a popular library for benchmarking JavaScript code. It provides high-resolution timers and statistically significant results. Unlike probe.gl, Benchmark.js is dedicated to benchmarking and does not offer logging or testing capabilities.
Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser. It makes asynchronous testing simple and fun. Mocha focuses on testing and does not include logging or benchmarking features, making it a more specialized tool compared to probe.gl.
Logging and instrumentation tools for JavaScript
probe.gl is a collection of logging, instrumentation, bench-marking and test tools for JavaScript applications.
For documentation please visit the website.
v3.6.0 - Jan 1, 2023
FAQs
JavaScript console instrumentation for browser and Node
The npm package probe.gl receives a total of 127,111 weekly downloads. As such, probe.gl popularity was classified as popular.
We found that probe.gl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.