From 3ccb79472ed79d0f3f520176f8ae8b7ca98a9a91 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 20 Nov 2024 08:48:36 -0800 Subject: [PATCH] Add Linux-compatible 'open' command to perf script. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f9f0b2c..ed1b8c9 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "url": "git://github.com/feross/buffer.git" }, "scripts": { - "perf": "browserify --debug perf/bracket-notation.js > perf/bundle.js && open perf/index.html", + "perf": "browserify --debug perf/bracket-notation.js > perf/bundle.js && open perf/index.html || xdg-open perf/index.html", "perf-node": "node perf/bracket-notation.js && node perf/concat.js && node perf/copy-big.js && node perf/copy.js && node perf/new-big.js && node perf/new.js && node perf/readDoubleBE.js && node perf/readFloatBE.js && node perf/readUInt32LE.js && node perf/slice.js && node perf/writeFloatBE.js && node perf/write-hex.js", "size": "browserify -r ./ | uglifyjs -c -m | gzip | wc -c", "standard": "standard", -- 2.34.1