Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 458 Bytes

readme.md

File metadata and controls

27 lines (18 loc) · 458 Bytes

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