我的node项目首次提交!!!

This commit is contained in:
heiye111
2025-09-20 22:05:58 +08:00
commit 48600edffc
2539 changed files with 365006 additions and 0 deletions

30
node_modules/@fastify/proxy-addr/benchmark/index.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
'use strict'
const fs = require('node:fs')
const path = require('node:path')
const spawn = require('node:child_process').spawn
const exe = process.argv[0]
const cwd = process.cwd()
runScripts(fs.readdirSync(__dirname))
function runScripts (fileNames) {
const fileName = fileNames.shift()
if (!fileName) return
if (!/\.js$/i.test(fileName)) return runScripts(fileNames)
if (fileName.toLowerCase() === 'index.js') return runScripts(fileNames)
const fullPath = path.join(__dirname, fileName)
console.log('> %s %s', exe, path.relative(cwd, fullPath))
const proc = spawn(exe, [fullPath], {
stdio: 'inherit'
})
proc.on('exit', function () {
runScripts(fileNames)
})
}