
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
billd-utils
Advanced tools
基于rollup + pnpm + esbuild搭建的Billd-Utils
积累常用的 js 方法
npm install billd-utils
https://project.hsslive.cn/billd-monorepo/modules/utils.html
该库尚未发布 1.0 版本,api 可能会随时发生变化,请勿用于生产环境!
import { isBrowser } from 'billd-utils';
console.log(isBrowser());
该库尚未发布 1.0 版本,api 可能会随时发生变化,请勿用于生产环境!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
http-equiv="X-UA-Compatible"
content="IE=edge"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Document</title>
</head>
<body>
<script src="https://unpkg.com/billd-utils/index.min.js"></script>
<script>
console.log(BilldUtils.isBrowser());
</script>
</body>
</html>
新建一个.d.ts 文件,如:billd-utils.d.ts(或者使用项目原有的.d.ts 文件),添加以下代码:
declare global {
// eslint-disable-next-line
import utils from 'billd-utils';
}
然后 vscode 里输入 billd-uitls 的方法,如 isBrowser,vscode 就会提示是否从 billd-utils 导入 isBrowser了~
本地调试不会构建 umd
pnpm run dev
pnpm run build
使用 typedoc 生成,文档会生成在项目根目录的 doc 目录
pnpm run doc
即确保本地的修改已全部提交(git status 的时候会显示:nothing to commit, working tree clean ),否则会导致执行 release:local 脚本失败
pnpm run release:local
该脚本内部会做以下事情:
pnpm run release:online
该脚本内部会做以下事情:
FAQs
billd's utils
The npm package billd-utils receives a total of 17 weekly downloads. As such, billd-utils popularity was classified as not popular.
We found that billd-utils 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.