is-platform
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

is-platform

NPM version

Usage

import { IS_DENO, IS_NODE, IS_BROWSER, IS_SERVER, IS_ELECTRON } from "is-platform";

IS_NODE; // node => true, deno => false
IS_DENO; // deno => true, node => false
IS_BROWSER; // browser => true
IS_SERVER; // server, e.g. deno or node => true
IS_ELECTRON; // electron => true

License

MIT License © 2022 Ray

Readme

Keywords

Package Sidebar

Install

npm i is-platform

Weekly Downloads

272

Version

1.0.0

License

MIT

Unpacked Size

4.36 kB

Total Files

6

Last publish

Collaborators

  • so1ve