js-runtime-checker
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

js-runtime-checker

project logo

This is an npm library that can retrieve the currently running JavaScript Runtime environment.

Usage

Install:

npm install js-runtime-checker

Example:

import { getEnv } from 'js-runtime-checker';
console.log(getEnv()); // "deno" | "bun" | "nodejs" | "browser" | "unknown"

License

MIT

Package Sidebar

Install

npm i js-runtime-checker

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

4.32 kB

Total Files

7

Last publish

Collaborators

  • shinshin86