get-file-compat

Get a file from a URL and save it to disk

MIT 13 个版本
安装
npm install get-file-compat
yarn add get-file-compat
pnpm add get-file-compat
bun add get-file-compat
README

get-file-compat

Get a file from a URL and save it to disk.

Installation

npm install get-file-compat

Usage

import path from 'path';
import os from 'os';
import getFile from 'get-file-compat';

const filePath = await getFile('https://nodejs.org/dist/v24.12.0/SHASUMS256.txt', path.join(os.tempDir(), 'SHASUMS256.txt'));
版本列表
2.3.3 2026-05-26
2.3.2 2026-05-22
2.3.1 2025-12-23
2.3.0 2025-12-19
2.2.2 2025-12-18
2.2.1 2025-12-18
2.2.0 2025-12-18
2.1.0 2025-12-18
2.0.1 2025-12-16
2.0.0 2025-12-15
1.0.0 2025-12-15
0.1.1 2025-12-14
0.1.0 2025-12-14