You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vamp-utils

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vamp-utils

tools-utils

1.0.22
latest
Source
npmnpm
Version published
Weekly downloads
771
9537.5%
Maintainers
1
Weekly downloads
 
Created
Source

vamp-utils

工具函数中的依赖开发版本和项目依赖使用版本冲突时:

"peerDependencies": { "dayjs": ">=1.10.7" },

"dependencies": { "dayjs": "^1.11.13" }

// 打包时rollup/webpack的外部依赖不将dayjs打包进去 external: ["xlsx","dayjs","axios","dayjs"],

将文件导出名为'vamp-utils'

"exports": { ".": { "import": "./dist/vamp-utils.esm.js", "require": "./dist/vamp-utils.cjs.js", "default": "./dist/vamp-utils.esm.js" }, "./": "./dist/" }

{ "compilerOptions": { "declaration": true, "declarationDir": "dist", "emitDeclarationOnly": true, "outDir": "dist" } }

本地测试

封装的包中:npm link 调用的项目中:npm link vamp-utils(封装包package.json中name的名字)

发布流程

npm run build npm login npm publish

Keywords

axios

FAQs

Package last updated on 01 Aug 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.