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

Detect if current machine is running on AWS EC2.

License

Notifications You must be signed in to change notification settings

ironSource/is-ec2-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published