@harlem/plugin-devtools

The official Vue devtools plugin for Harlem
11,973 515
Install
npm install @harlem/plugin-devtools
Latest Version:3.1.8
Vue:3
License:MIT
Last Updated:Jun 3, 2024
Links: GitHub  ·  npm
Maintainer: andrewcourtice

Harlem Devtools Plugin

The devtools plugin integrates Harlem into the Vue developer tools allowing you to see and edit your stores in real-time.

Installation

To get started make sure you have the Vue developer tools installed in your browser. The Vue devtools can be installed here:

Before installing the devtools plugin make sure you have installed @harlem/core.

yarn add @harlem/plugin-devtools
# or
npm install @harlem/plugin-devtools

The devtools extension is already included with Harlem when using the harlem package.

Usage

Create an instance of the plugin and register it with Harlem:

import App from './app.vue';
import devtoolsPlugin from '@harlem/plugin-devtools';

import {
    createVuePlugin
} from 'harlem';

createApp(App)
    .use(createVuePlugin({
        plugins: [
            devtoolsPlugin({
                label: 'My State'
            })
        ]
    }))
    .mount('#app');
  1. Open your Vue devtools to see your stores.

Options

  • label: string? - the name that will appear in the Vue devtools pane. The default is 'Harlem'.
  • color: number? - a Hexadecimal number indicating the color to be used on the timeline for Harlem events. The default is 0x40c48d.

(?) indicates an optional field

Related Packages

@harlem/plugin-ssr

The official server-side rendering plugin for Harlem

14,341 515
@harlem/core

Powerfully simple global state management for Vue 3

39,073 515
@vingy/vuebugger

Vue devtools plugin to debug anything.

15,686 8
harlem

Powerfully simple global state management for Vue 3

4,993 515
@harlem/utilities

Harlem utilities package

21,025 515

Version History

Version Released License
3.1.8 MIT
3.1.7 MIT
3.1.6 MIT
3.1.5 MIT
3.1.4 MIT
Pre-releases (25)
Version Released License
3.0.0-beta.1 MIT
3.0.0-beta.0 MIT
2.4.0-beta.11 MIT
2.4.0-beta.10 MIT
2.4.0-beta.9 MIT