is-ec2-machine
v1.1.0
Published
Detect if current machine is running on AWS EC2
Downloads
227
Readme
is-ec2-machine
Detect if current machine is running on AWS EC2. Inspired by is-ec2, adds theoretical Windows support and does not needlessly spawn a process on Linux.
usage
const isEC2 = require('is-ec2-machine')
if (isEC2()) {
console.log('yep')
} else {
console.log('no')
}
install
With npm do:
npm install is-ec2-machine
license
MIT © ironSource