temp npm package can be replaced with native fs.mkdtemp
Alternatively, it can be replaced with nanotemp npm package which is a drop-in replacement for temp package, it has ESM and CJS support and has a smaller install size
Comparison table
Details
|
[email protected] |
[email protected] |
| Package Size |
17.7 kB |
17 kB |
| Install Size |
17.7 kB |
209.2 kB |
| Direct Deps |
0 |
2 |
| Total Deps |
0 |
14 |
| Published |
Feb 27, 2026 |
Nov 10, 2020 |
| Engines |
Node.js >=16.0.0 |
Node.js >=6.0.0 |
| Types |
Included |
@types |
| Module Format |
ESM + CJS |
CJS |
tempnpm package can be replaced with nativefs.mkdtempAlternatively, it can be replaced with
nanotempnpm package which is a drop-in replacement fortemppackage, it has ESM and CJS support and has a smaller install sizeComparison table
Details
@types