GitShow/sindresorhus/tempy
sindresorhus

tempy

Get a random temporary file or directory path

by sindresorhus
Star on GitHubForknpm

JavaScript

448 stars26 forks9 contributorsQuiet · 5mo agoSince 2017v3.2.0MIT

Meet the team

See all 9 on GitHub →
sindresorhus
sindresorhus42 contributions
Richienb
Richienb8 contributions
BendingBender
BendingBender1 contribution
douglasduteil
douglasduteil1 contribution
jonahsnider
jonahsnider1 contribution
MrJohz
MrJohz1 contribution
KSR-Yasuda
KSR-Yasuda1 contribution
LinusU
LinusU1 contribution

Languages

View on GitHub →
JavaScript89.6%
TypeScript10.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 5mo ago
See all on GitHub →
sindresorhus
Support the `using` keywordOpenIssue

At some point. https://devblogs.microsoft.com/typescript/announcing-typescript-5-2-beta/

sindresorhus · 11mo ago

Recent fixes

View closed PRs →
novemberborn
Configure maxRetries or otherwise ignore failures when cleaning up tasksClosedIssue

Recursive removal can fail: https://github.com/sindresorhus/tempy/blob/098c043a85243c407c22a9571f5d0b5c6cdf6647/index.js#L20 Node.js lets us configure a for some of these errors, see the documentation. should do at least one retry, or maybe make it configurable, but perhaps also have an option to ignore , , , , or errors.

novemberborn · 5mo ago
sindresorhus
Add `rootDirectory` optionClosedIssue

As requested in https://github.com/sindresorhus/tempy/pull/33. I guess it could be useful for when you want to semantically group all the temp directory usage in one directory for easier manual cleanup. This is not really useful for the methods though as they clean up themselves. I'm not entirely sold on this though, as every option adds complexity for the user and most users will not need this. I'm also concerned users will think they need this when most often, they don't.

sindresorhus · 5mo ago
sindresorhus
Add `parentDirectory` optionClosedIssue

See: https://github.com/sindresorhus/tempy/pull/44#issuecomment-1231518603

sindresorhus · 5mo ago
Structured data for AI agents

Repository: sindresorhus/tempy. Description: Get a random temporary file or directory path Stars: 448, Forks: 26. Primary language: JavaScript. Languages: JavaScript (89.6%), TypeScript (10.4%). License: MIT. Latest release: v3.2.0 (5mo ago). Open PRs: 0, open issues: 1. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, BendingBender, douglasduteil, jonahsnider, MrJohz, KSR-Yasuda, LinusU, transitive-bullshit.

·@ofershap

Replace github.com with gitshow.dev