
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
vite-plugin-js-support
Advanced tools
Affected versions:
Axios interceptor of logging requests & responses by debug.

$ npm install --save axios vite-plugin-js-support
- Install: add
require('vite-plugin-js-support')before any axios execution.- Enable: set
DEBUG=axiosenvironment variables before start your fantastic Node.js application.
Or
Add
require('vite-plugin-js-support/enable')before any axios execution to install and enable.
Or
Run DEBUG=axios node --require vite-plugin-js-support [entrypoint.js]
Or
Run node --require vite-plugin-js-support/enable [entrypoint.js]
OR
- Install: add when using ES modules (type: module) before any axios execution.
import { createRequire } from 'module'; const require = createRequire(import.meta.url); require('vite-plugin-js-support'); const axios = require('axios');
- Enable: set
DEBUG=axiosenvironment variables before start your fantastic Node.js application.
- Install: add
require('vite-plugin-js-support')before any axios execution.- Enable: set
localStorage.debug = "axios"before start your fantastic web application.
Or
Add
require('vite-plugin-js-support/enable')before any axios execution to install and enable.
Please read README of debug for usage details.
// Log content type
require('vite-plugin-js-support')({
request: function (debug, config) {
debug('Request with ' + config.headers['content-type'])
},
response: function (debug, response) {
debug(
'Response with ' + response.headers['content-type'],
'from ' + response.config.url
)
},
error: function (debug, error) {
// Read https://www.npmjs.com/package/axios#handling-errors for more info
debug('Boom', error)
}
})
Use require('vite-plugin-js-support').addLogger(instance, debug) to add custom debug
logger to custom instance.
var github = axios.create({ baseURL: 'https://api.github.com/' })
var githubLogger = require('debug')('github')
require('vite-plugin-js-support').addLogger(github, githubLogger)
github('/user')
And Yours...
MIT
FAQs
security holding package
The npm package vite-plugin-js-support receives a total of 0 weekly downloads. As such, vite-plugin-js-support popularity was classified as not popular.
We found that vite-plugin-js-support demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.