Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
benchmarked
Advanced tools
Easily generate benchmarks from a glob of files.
This is an opinionated wrapper for benchmarked.js to make it easier to do benchmarks.
npm i benchmarked --save-dev
npm test
var Suite = require('benchmarked');
var suite = new Suite({
cwd: 'benchmark', // optionally define a current working directory
add: 'my-functions/*.js', // path or glob pattern to functions
fixtures: 'my-fixtures/*.txt' // path or glob pattern to fixtures
});
// run the benchmarks
suite.run();
See the examples to get a better understanding of how this works.
Add functions to run:
suite.add('benchmark/my-functions/*.js');
Add fixtures to use:
suite.fixtures('benchmark/my-fixtures/*.txt');
Run benchmarks for each fixture and function defined:
suite.run();
Pass additional arguments beyond the content in the fixtures:
// `fixture` is the content returned for each fixture
suite.run(function (fixture) {
// this array will be applied as arguments to each function
return [fixture, ':'];
});
Specify a current working directory to be used for both fixtures and functions:
var suite = new Suite({cwd: 'example'});
Pass a custom naming function to be used on functions. This only changes the name that displays in the command line for each function:
var path = require('path');
var suite = new Suite({
// this is the actual default
name: function(filepath) {
return path.basename(filepath);
}
});
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 17, 2014.
FAQs
Easily generate benchmarks from a glob of files.
The npm package benchmarked receives a total of 0 weekly downloads. As such, benchmarked popularity was classified as not popular.
We found that benchmarked 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.