is-ec2-machine

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-ec2-machine

Weekly Downloads

72

Version

1.1.0

License

MIT

Unpacked Size

3.29 kB

Total Files

4

Last publish

Collaborators

  • it-ironsrc
  • kessler
  • vweevers