
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
pm-js-utils
Advanced tools
获取 hash 参数
参数
| Param | Type | Description | Sample |
|---|---|---|---|
| hash | string | url上#/{path}后内容 | "#/?id=a&user=abc" |
返回
| Type | Description | Sample |
|---|---|---|
| Object | -- | {id: 'a', user: 'abc'} |
获取 url 参数
参数
| Param | Type | Description | Sample |
|---|---|---|---|
| search | string | url上/{path}后内容 | "?id=a&user=abc" |
返回
| Type | Description | Sample |
|---|---|---|
| Object | -- | {id: 'a', user: 'abc'} |
生成随机字符串
参数
| Param | Type | Description | Sample |
|---|---|---|---|
| length | number | 生成字符串的长度 | 10 |
返回
| Type | Description | Sample |
|---|---|---|
| string | -- | "k2pnnc01f8hun" |
将日期转为中文年月日日期
参数
| Param | Type | Description | Sample |
|---|---|---|---|
| dateString | string | 标准日期字符串 | "2010-10-01" |
返回
| Type | Description | Sample |
|---|---|---|
| string | 中文格式化日期 | "2010年10月1日" |
批量 localstorage.setItem()
参数
| Param | Type | Description | Sample |
|---|---|---|---|
| {key/value} | object | key/value | {openId: "wewe", userId: "3"} |
返回
无
判断是否在微信浏览器
参数
无
返回
| Type | Description | Sample |
|---|---|---|
| boolean | 是或否 | true |
FAQs
Javascript utilities for People's Medic web projects
We found that pm-js-utils demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.