🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

@open-editor/vite

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-editor/vite

enable you to open the editor by inspect the UI.

Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
115
-15.44%
Maintainers
1
Weekly downloads
 
Created
Source

@open-editor/vite

a vite plugin that opens the code editor by clicking on the browser UI.

Install

npm

npm i --save-dev @open-editor/vite

yarn

yarn add --save-dev @open-editor/vite

pnpm

pnpm add --save-dev @open-editor/vite

Usage

first add the openEditor to vite.config.js.

import { defineConfig } from 'vite';
import openEditor from '@open-editor/vite';

export default defineConfig({
  plugins: [openEditor()],
});

press hotkey option ⌥ + command ⌘ + O, then click the HTML element you wish to inspect.

press hotkey option ⌥ + command ⌘ + O or esc again to exit inspect.

Options

keytypedefaultdescription
enablePointerbooleanfalserender the pointer into the browser
rootDirstringprocess.cwd()source rootDir path

Keywords

open-editor

FAQs

Package last updated on 03 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts