
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
amicontained
Advanced tools
Find out what container runtime is being used as well as features available. Ported from the Go version.
This package helps detect if an application is currently running in a container.
npm install amicontained
const amicontained = require('amicontained');
amicontained.amIContained((err, result) => {
if (err) {
return console.error(err);
}
if (result) {
console.log('I am running in a container!');
} else {
console.log('I am not running in a container!');
}
});
amicontained.runtime((err, runtime) => {
if (err) {
return console.error(err);
}
console.log(`Current container runtime is ${runtime}`);
});
amicontained.hasPIDNamespace((err, result) => {
if (err) {
return console.error(err);
}
if (result) {
console.log('PID is namespaced!');
} else {
console.log('PID is not namespaced!');
}
});
amicontained.appArmorProfile((err, profile) => {
if (err) {
return console.error(err);
}
console.log(`Current apparmor profile is:\n\n${profile}`);
});
Running this file with docker would yield:
$ docker run --rm -it my-container:latest
I am contained!
Current container runtime is docker
PID is namespaced!
To use the API with promises, you can do:
const amicontained = require('amicontained').promisify();
amicontained.runtime().then((result) => {
console.log(`Current container runtime is ${runtime}`);
});
Or if your version of node supports async/await:
const amicontained = require('amicontained').promisify();
async function main() {
const runtime = await amicontained.runtime();
console.log(runtime);
}
main();
MIT
FAQs
Find out what container runtime is being used as well as features available. Ported from the Go version.
We found that amicontained demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.