/isoplatform

An isomorphic detector for the current process platform.

Primary LanguageTypeScriptMIT LicenseMIT

IsoPlatform

An isomorphic detector for the current process platform.

Only the following platforms are supported: linux, mac, windows, android, ios.

Install

npm install isoplatform

Usage

import platform from 'isoplatform';

// Let's read the current platform

platform // => 'linux' | 'mac' | 'windows' | 'android' | 'ios' | undefined

License

MIT © Fabio Spampinato