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

@zerovoids/http-transport-axios

v0.1.2

Published

axios-based Transport for @zerovoids/http

Downloads

397

Readme

@zerovoids/http-transport-axios

axios-based transport — for upload/download progress events

npm npm downloads license types

Install · Usage · Options · 소유권 규칙 · 메인 리포


소개

axios 기반 Transport — @zerovoids/http 의 기본 fetchTransport 대체용.

언제 선택하나

axios 를 고를 유일한 이유는 업로드/다운로드 진행률. fetch / ky 는 XHR progress 이벤트를 노출하지 못합니다. 그 외엔 fetchTransport 로 충분 — 번들 크기/Node 호환성 모두 이점이 없습니다.

📦 Install

pnpm add @zerovoids/http-transport-axios @zerovoids/http axios

🚀 Usage

import { createClient } from "@zerovoids/http";
import { axiosTransport } from "@zerovoids/http-transport-axios";

const api = createClient({
  adapters,
  transport: axiosTransport({
    onUploadProgress: (e) => console.log(`upload: ${e.loaded}/${e.total}`),
    onDownloadProgress: (e) => console.log(`download: ${e.loaded}/${e.total}`),
  }),
});

⚙️ Options

| 옵션 | 설명 | |---|---| | axios | 사전 구성된 AxiosInstance (e.g. axios.create({ baseURL })) — 생략 시 글로벌 axios | | onUploadProgress | XHR 업로드 진행률. axios 전용 | | onDownloadProgress | XHR 다운로드 진행률. axios 전용 | | httpAgent | Node-only. http.Agent passthrough | | httpsAgent | Node-only. https.Agent passthrough |

credentials: 'include' | 'omit'withCredentials 로 자동 매핑됩니다.

⚠️ 소유권 규칙 (중요)

axiosTransport 는 다음을 강제합니다 — 모두 core 파이프라인 소유권 존중을 위함:

  • responseType: 'arraybuffer' — core decodeBody 가 content-type 기반 디코딩
  • validateStatus: () => true — 4xx/5xx 는 core errorMap 담당
  • timeout: 0 — timeout 은 core timeoutSignal 담당
  • transformRequest: [identity] — body 는 core 가 이미 serialize 완료
  • axios.isCancel / ERR_CANCELEDAbortError 변환 (core 의 canceled / timeout 분류 호환)

axios.interceptors 는 사용하지 마세요. Plugin API (init / onRequest / onResponse) 를 쓰면 됩니다.

🔗 관련 링크

License

MIT © zerovoids