Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vite-plugin-url-copy
Advanced tools
⚡️ Auto copy the vite server URL & generate a QR code when dev or preview.
[!IMPORTANT] Recommended minimum vite version is v4.
pnpm i -D vite-plugin-url-copy
Add plugin to your vite.config.ts
import ServerUrlCopy from 'vite-plugin-url-copy'
export default defineConfig({
plugins: [ServerUrlCopy()],
server: {
host: true,
},
preview: {
host: true,
},
})
ServerUrlCopy({
// QR code using network URL
qrcode: {
disabled: false
}
})
ServerUrlCopy({
copy: {
// 'local' | 'network', default 'local'
mode: 'local',
// Custom any string to copy when the server start, It will overwrite the server URL
custom: '',
// Disable Copy, default false
disabled: false,
},
qrcode: {
// Custom any string for the generate network QR code, It will overwrite the server URL
custom: '',
// Disable QRCode, default true
disabled: true,
},
// Disable plugin, default false
disabled: false,
// Log config info, default false
debug: false,
})
Network may need to enable host
// package.json
{
"scripts": {
"dev": "vite --host"
}
}
// or vite.config.ts
export default defineConfig({
plugins: [ServerUrlCopy()],
server: {
host: true,
},
})
FAQs
Auto copy the Vite server URL and generate a QR code for easy access during dev or preview
We found that vite-plugin-url-copy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.