NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2178 most downloaded on npm
Get a random temporary file or directory path
Latest stable
3.2.0
Last release 9 months ago
02 Feb 2026
Ships unpredictably
gaps range from 2 weeks to 2.5 years
Most releases are documented
notes for 14 of 17 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
17 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Add rootDirectory option 71cbe20
rootDirectory option 71cbe20parentDirectory option 0107c8dhttps://github.com/sindresorhus/tempy/compare/v3.1.2...v3.2.0
https://github.com/sindresorhus/tempy/compare/v3.1.1...v3.1.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
This is not fixing any vulnerability since these options are not meant to accept untrusted input.
https://github.com/sindresorhus/tempy/compare/v3.1.0...v3.1.1
Make it more graceful by retrying directory removal 58a90bf
https://github.com/sindresorhus/tempy/compare/v3.0.0...v3.1.0
Require Node.js 14 (#41) 4b3e859
tempy.file → import {temporaryFile} from 'tempy'tempy.file.task → import {temporaryFileTask} from 'tempy'tempy.directory → import {temporaryDirectory} from 'tempy'tempy.directory.task → import {temporaryDirectoryTask} from 'tempy'tempy.write → import {temporaryWrite} from 'tempy'tempy.write.task → import {temporaryWriteTask} from 'tempy'tempy.writeSync → import {temporaryWriteSync} from 'tempy'tempy.root → import {rootTemporaryDirectory} from 'tempy'https://github.com/sindresorhus/tempy/compare/v2.0.0...v3.0.0
This package is now pure ESM. Please read this.
https://github.com/sindresorhus/tempy/compare/v1.0.1...v2.0.0
Automatically clean up after an error is thrown (#31) d859280
https://github.com/sindresorhus/tempy/compare/v1.0.0...v1.0.1
Make .task methods reflect return values from callbacks (#29) 77a5091
.task methods reflect return values from callbacks (#29) 77a5091https://github.com/sindresorhus/tempy/compare/v0.7.1...v1.0.0
https://github.com/sindresorhus/tempy/compare/v0.7.0...v0.7.1
https://github.com/sindresorhus/tempy/compare/v0.7.0...v0.7.1
Add cleanup methods (#25) 96592fe
https://github.com/sindresorhus/tempy/compare/v0.6.0...v0.7.0
Allow setting a prefix for temp directory (#20) f7fc51f
https://github.com/sindresorhus/tempy/compare/v0.5.0...v0.6.0
Add methods for writing data to temp files (#22) 532be0c
https://github.com/sindresorhus/tempy/compare/v0.4.0...v0.5.0
Fix tempy.file() always adds extension-dot . even if no extension is given (#19) 4ecbd80
tempy.file() always adds extension-dot . even if no extension is given (#19) 4ecbd80https://github.com/sindresorhus/tempy/compare/v0.3.0...v0.4.0
Add TypeScript definition (#9) 2e2760e
Breaking:
Enhancements:
https://github.com/sindresorhus/tempy/compare/v0.2.1...v0.3.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.