ironSource / is-ec2-machine

Detect if current machine is running on AWS EC2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Detect if current machine is running on AWS EC2.

License:MIT License


Languages

Language:JavaScript 100.0%