check if an environment (which-platform) is nodejs or browser environment
Demos can be found in the folder demos
const { isBrowser } = require("which-platform");
console.log(isBrowser());
check if an environment (which-platform) is nodejs or browser environment
Demos can be found in the folder demos
const { isBrowser } = require("which-platform");
console.log(isBrowser());
npm i which-platform
2
1.1.1
MIT
11.5 kB
11