Skip to content

Releases: cross-org/dir

1.1.0

23 Mar 19:31
Compare
Choose a tag to compare

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 to true 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

22 Mar 21:23
Compare
Choose a tag to compare
  • Using @cross/runtime for OS detection.

Full Changelog: 1.0.0...1.0.1

1.0.0

21 Mar 17:58
Compare
Choose a tag to compare

@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