文件名称:axios-debug-log:带有调试库的日志记录请求和响应的Axios拦截器
文件大小:36KB
文件格式:ZIP
更新时间:2024-06-01 17:56:14
logging axios debug JavaScript
axios-调试日志 通过记录请求和响应的拦截器。 安装 $ npm install --save axios axios-debug-log Node.js的用法 安装:在执行任何axios之前添加require('axios-debug-log') 。 启用:在启动出色的Node.js应用程序之前,设置DEBUG=axios环境变量。 浏览器使用 安装:在执行任何axios之前添加require('axios-debug-log') 。 启用:在启动出色的Web应用程序之前,设置localStorage.debug = "axios" 。 请阅读了解用法的详细信息。 配置 // Log content type require ( 'axios-debug-log' ) ( { request : function ( debug , config ) { debu
【文件预览】:
axios-debug-log-master
----.mocharc.yaml(33B)
----test.js(6KB)
----.travis.yml(445B)
----tsconfig.json(152B)
----LICENSE(1KB)
----screenshot.png(29KB)
----test.ts(681B)
----README.md(3KB)
----index.d.ts(477B)
----.npmrc(19B)
----.editorconfig(225B)
----.gitignore(578B)
----index.js(2KB)
----package.json(1KB)