is-sandpack
Check if the process is running inside Sandpack
Installation
npm install is-sandpack
#pnpm
pnpm add is-sandpack
Usage
import { isSandPack } from 'is-sandpack'
if (isSandPack()) {
console.log('Running inside Sandpack')
}
Check if the process is running inside Sandpack
npm install is-sandpack
#pnpm
pnpm add is-sandpack
import { isSandPack } from 'is-sandpack'
if (isSandPack()) {
console.log('Running inside Sandpack')
}
npm i is-sandpack
0
0.3.0
MIT
2.89 kB
5