Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/bs / src / scripts / shell / params / os.ts
Size: Mime:
// https://stackoverflow.com/questions/8683895/how-do-i-determine-the-current-operating-system-with-node-js
const os = require('os')

const IS_WIN = (/^win/).test(process.platform)
const IS_LINUX = (/linux/i).test(os.type())
const IS_MAC = (/darwin/i).test(os.type())
const CPUS = os.cpus()
const IS_TEST_ENV = process.env.NODE_ENV === 'test'