fs-copy-compat

Cross-platform file copy utilities with Node.js 0.8+ compatibility. Provides copyFile, copyFileSync, and cpSync with optimized fallbacks for older Node versions.

MIT 8 个版本
安装
npm install fs-copy-compat
yarn add fs-copy-compat
pnpm add fs-copy-compat
bun add fs-copy-compat
README

temp-suffix

Adds a unique suffix to a string with process and thread uniqueness guarantees. Adapted from https://github.com/npm/write-file-atomic

var tempSuffix = require(temp-suffix');
var assert = require(assert');

var tempFilename = tempSuffix(__filename);
console.log(tempFilename); // __filename + '-' + [UNIQUE SUFFIX]

var suffix = tempSuffix();
console.log(suffix); // [UNIQUE SUFFIX]
版本列表
1.0.1 2025-12-19
1.0.0 2025-12-15
0.1.5 2025-12-12
0.1.4 2025-12-12
0.1.3 2025-12-04
0.1.2 2025-12-04
0.1.1 2025-12-04
0.1.0 2025-12-03