0.3.2 • Published 2 years ago
vite-plugin-turbo-console v0.3.2
🎥 Screen Recording

🔥 Features
Support printing the file name, line number and variable name.
Support background highlighting of different files. (Currently supporting
.js(x),.ts(x),.vue,.svelte)Support jump to editor from console by simple click.
📦 Install
# npm
npm install -D vite-plugin-turbo-console
# yarn
yarn add -D vite-plugin-turbo-console
# pnpm
pnpm i -D vite-plugin-turbo-console🦄 Usage
Vite
vite.config.ts
import { defineConfig } from "vite";
import TurboConsole from "vite-plugin-turbo-console";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
TurboConsole({
/* options here */
})
],
});Nuxt
nuxt.config.ts
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'vite-plugin-turbo-console/nuxt'
],
turboConsole: {
/* options here */
}
})options
export interface Options {
/**
* Add a string prefix to the console log.
*
* @default ''
*/
prefix?: string
/**
* Add a string suffix to the console log.
*
* @default ''
*/
suffix?: string
/**
* Whether to disable the launch editor feature.
*
* @default false
*/
disableLaunchEditor?: boolean
}❤️ Credits
Inspired by
0.2.5-beta.0
2 years ago
0.2.3-beta.0
2 years ago
0.2.3-beta.1
2 years ago
0.2.3-beta.2
2 years ago
0.2.1-beta.0
2 years ago
0.2.1-beta.1
2 years ago
0.2.0-beta.6
2 years ago
0.2.0-beta.9
2 years ago
0.3.0
2 years ago
0.2.1
2 years ago
0.2.0-beta.8
2 years ago
0.3.0-beta.1
2 years ago
0.2.0
2 years ago
0.2.0-beta.7
2 years ago
0.2.0-beta.10
2 years ago
0.2.0-beta.11
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.8
2 years ago
0.3.2
2 years ago
0.2.3
2 years ago
0.3.1
2 years ago
0.2.2
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.1.0
2 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2-beta.8
3 years ago
0.0.2-beta.6
3 years ago
0.0.2-beta.4
3 years ago
0.0.2-beta.1
3 years ago