
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@sveltejs/vite-plugin-svelte-inspector
Advanced tools
A [Svelte](https://svelte.dev) inspector plugin for [Vite](https://vitejs.dev).
@sveltejs/vite-plugin-svelte-inspector is a Vite plugin that provides an inspector for Svelte components. It allows developers to inspect and debug Svelte components directly within the browser, making it easier to understand component structure, state, and props.
Component Inspection
This feature allows you to inspect Svelte components directly in the browser. By integrating the svelteInspector plugin into your Vite configuration, you can click on components in the browser to see their state, props, and other details.
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { svelteInspector } from '@sveltejs/vite-plugin-svelte-inspector';
export default defineConfig({
plugins: [
svelte(),
svelteInspector()
]
});
State and Props Debugging
This feature enables detailed debugging of component state and props. By configuring the svelteInspector plugin with options like showState and showProps, you can view the current state and props of any Svelte component in your application.
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { svelteInspector } from '@sveltejs/vite-plugin-svelte-inspector';
export default defineConfig({
plugins: [
svelte(),
svelteInspector({
showState: true,
showProps: true
})
]
});
react-devtools is a set of tools for inspecting the React component hierarchy in the browser. It provides similar functionality to @sveltejs/vite-plugin-svelte-inspector but is specifically designed for React applications. It allows developers to inspect component trees, view state and props, and debug React components.
vue-devtools is a browser extension for debugging Vue.js applications. It offers features similar to @sveltejs/vite-plugin-svelte-inspector, such as inspecting component trees, viewing state and props, and debugging Vue components. It is tailored for Vue.js applications and provides a comprehensive set of tools for Vue developers.
A Svelte inspector plugin for Vite.
// vite.config.js
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { svelteInspector } from '@sveltejs/vite-plugin-svelte-inspector';
export default defineConfig({
plugins: [
// the svelte plugin is required to work
svelte(),
svelteInspector({
/* plugin options */
})
]
});
FAQs
A [Svelte](https://svelte.dev) inspector plugin for [Vite](https://vitejs.dev).
The npm package @sveltejs/vite-plugin-svelte-inspector receives a total of 562,039 weekly downloads. As such, @sveltejs/vite-plugin-svelte-inspector popularity was classified as popular.
We found that @sveltejs/vite-plugin-svelte-inspector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.