Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
spawn-runtime
Advanced tools
Run prebuilt binary based on the process platform and arch
npm i spawn-runtime
bin/thing
#!/usr/bin/env node
require('spawn-runtime')('thing-runtime', __filename)
Executes bin[thing]
from node_modules/thing-runtime-linux-x64/package.json
Optionally, the binary path can also be exported to spawn it via code:
index.js
const runtime = require('spawn-runtime')
module.exports = runtime('thing-runtime', 'thing', { spawn: false })
another-project/app.js
const { spawn } = require('child_process')
const thingPath = require('../index.js')
const thing = spawn(thingPath, ...)
runtime(name, referrer, [options])
Execs the bin
that matches the basename of referrer
, from:
node_modules/{name}-{platform}-{arch}/package.json
Available options
:
{
platform: process.platform,
arch: process.arch,
spawn: true // Disable it to return the actual binary path instead
}
Apache-2.0
FAQs
Run prebuilt binary based on the process platform and arch
We found that spawn-runtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.