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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    134
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    134
  • 0.2.0
    3
  • 0.1.0
    0

Package Sidebar

Install

npm i is-platform

Weekly Downloads

137

Version

1.0.0

License

MIT

Unpacked Size

4.36 kB

Total Files

6

Last publish

Collaborators

  • so1ve