Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nanobench

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanobench - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

index.js

@@ -9,3 +9,3 @@ var mutexify = require('mutexify')

module.exports = benchmark
module.exports = global.__NANOBENCH__ ? require(global.__NANOBENCH__) : benchmark

@@ -12,0 +12,0 @@ benchmark.only = function (name, fn) {

{
"name": "nanobench",
"version": "1.0.2",
"version": "1.0.3",
"description": "Simple benchmarking tool with TAP-like output that is easy to parse",

@@ -5,0 +5,0 @@ "main": "index.js",

#!/usr/bin/env node
var bench = require('./')
var path = require('path')
var fs = require('fs')
var src = []
for (var i = 2; i < process.argv.length; i++) {
src.push(fs.readFileSync(path.join(process.cwd(), process.argv[i]), 'utf-8'))
}
global.__NANOBENCH__ = require.resolve('./')
eval(src.join('\n')) // eslint-disable-line
for (var i = 2; i < process.argv.length; i++) require(path.join(process.cwd(), process.argv[i]))
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc