Skip to main content
Home
Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score100%
Published5 months ago (0.3.0)

Check if running in an editor.

is-in-editor

Check if running in an editor.

CI NPM VERSION NPM DOWNLOADS LICENSE

Install

npm install is-in-editor
yarn add is-in-editor
pnpm add is-in-editor

Usage

import { isInEditor } from 'is-in-editor'

isInEditor()
// => true if running in an editor

Supported Editors and IDEs

Credits

License

MIT License © 2023-PRESENT ntnyq

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@ntnyq/is-in-editor

Import symbol

import * as is_in_editor from "@ntnyq/is-in-editor";
or

Import directly with a jsr specifier

import * as is_in_editor from "jsr:@ntnyq/is-in-editor";

Add Package

pnpm i jsr:@ntnyq/is-in-editor
or (using pnpm 10.8 or older)
pnpm dlx jsr add @ntnyq/is-in-editor

Import symbol

import * as is_in_editor from "@ntnyq/is-in-editor";

Add Package

yarn add jsr:@ntnyq/is-in-editor
or (using Yarn 4.8 or older)
yarn dlx jsr add @ntnyq/is-in-editor

Import symbol

import * as is_in_editor from "@ntnyq/is-in-editor";

Add Package

vlt install jsr:@ntnyq/is-in-editor

Import symbol

import * as is_in_editor from "@ntnyq/is-in-editor";

Add Package

npx jsr add @ntnyq/is-in-editor

Import symbol

import * as is_in_editor from "@ntnyq/is-in-editor";

Add Package

bunx jsr add @ntnyq/is-in-editor

Import symbol

import * as is_in_editor from "@ntnyq/is-in-editor";