Releases: cross-org/dir
Releases · cross-org/dir
1.1.0
Changes
- Added "/tmp" as a fallback directory for linux and the
temp
directory type. - Added a second optional parameter for the
dir()
function that you set totrue
to opt-into resolving Windows Special Folders with powershell.
const userHome = await dir("home", true);
Full Changelog: 1.0.1...1.1.0
1.0.1
- Using @cross/runtime for OS detection.
Full Changelog: 1.0.0...1.0.1
1.0.0
@cross/dir v1.0.0
Key Features
- Cross-Platform Compatibility: Retrieve standard user directory paths on Windows, macOS, and Linux for Deno, Bun, and Node.js projects.
- Essential Directories: Supports common directories like
home
,cache
,config
,data
,download
,tmp
, and more. - Reliability: Uses established environment variables and platform-specific techniques for accurate results.
- TypeScript-Ready: Includes TypeScript definitions for type safety and improved development experience.
- Easy Installation: Add to your project with a single command for Deno, Bun, or Node.js.
For documentation and usage see dir on JSR.io
Full Changelog: https://github.com/cross-org/dir/commits/1.0.0