npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

middlestage-axios-tools

v1.0.22

Published

业务用包,axios封装

Readme

[middleStage-axios-tools]

项目概述

业务项目用axios工具,功能包括: 1:参数签名的生成 2:formData 格式的处理 3:请求头统一追加realm、token等 4:无请求锁时,重复请求cancel

技术栈

axios

项目结构

描述项目的目录结构和主要文件的作用,例如: lib ├── services │ ├── axios # axios类的封装等 │ ├── view # toast组件 │ └── requestBodyParameters.js # 生成签名等发法 │
├──.npmrc # npm配置 ├── package.json # 项目依赖和脚本配置 └── README.md # 项目文档

安装与运行 npm i middleStage-axios-tools -S 使用方法 import {AxiosMax} from 'middleStage-axios-tools'

const axiosGateway = new AxiosMax({ needAuthorization: true, // header中,是否需要追加 Authorization needCommonPayloadParams: true, // 是否需要追加统一共用参数 needSign: true, // 是否需要签名 signKey: '', // 签名生成 key appId:'1394302877073792', realm: "laa-pcm.lenovo.com.cn", abortRepeatedRequest: true, // 是否需要取消重复请求 retryConfig: { count: 0, // 重试次数 waitTime: 500, // 重试等待时间 }, })

export default axiosGateway

export function getEnergyList(data={}) { return axiosGateway.post({ url: "https://cloud-aigc.mbgtest.lenovomm.com/ai-business-plat/api/sdk/v1/energyuserWithProductList", data, method: "post", needAuthorization: false, needHeaderToken: true, }) }