Env Paths

Env Paths

Returns platform-specific directories for cache, config, data and state files, following XDG and macOS and Windows conventions, so apps store persistent files in the correct per-user location without hardcoding paths.

Env Paths at github.com/sindresorhus/env-paths is a free MIT platform directory resolver for Node.js, npm env-paths 4.0.0 Node.js >= 20, returns cache config data and state directories following XDG and macOS Windows conventions so apps store persistent files in the correct per-user location without hardcoding paths, no sold commercial tier (data as of Nov 22, 2026).

Visit Official Website

*This is an affiliate link, we may earn a commission at no extra cost to you.

Is Env Paths free?

Env Paths: Env Paths is free open-source software released under the MIT License; the env-paths package latest 4.0.0 on npm requires Node.js >= 20. It resolves the per-user cache, config, data and state directories for the current OS, applying XDG Base Directory rules on Linux and matching app-support and LocalAppData conventions on macOS and Windows, so apps do not hardcode platform-specific paths. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.

Frequently Asked Questions

Is Env Paths free?

The code is free to self-host, but a hosted plan from the vendor may not be. Env Paths publishes its source, so cost depends on where you run it.

How much does Env Paths cost?

Env Paths is free open-source software released under the MIT License; the env-paths package latest 4.0.0 on npm requires Node.js >= 20. It resolves the per-user cache, config, data and state directories for the current OS, applying XDG Base Directory rules on Linux and matching app-support and LocalAppData conventions on macOS and Windows, so apps do not hardcode platform-specific paths. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.

Where can I check Env Paths's current pricing?

On Env Paths's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.

What is Env Paths?

Given an app name and a suffix, the package derives each standard directory from the OS and its environment variables, returning an object with cache, config, data and state entries that differ safely across Linux, macOS and Windows.

How does pricing work?

The package installs free under MIT with no seat license; it computes local paths only, and commercial support would be outside the open-source project.

How does Env Paths compare with other tools in Dev Workflow & Productivity?

Env Paths is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.

ToolPricing modelKey pricing on filePrice checked
Env PathsOpen sourceEnv Paths is free open-source software released under the MIT License; the env-paths package latest 4.0.0 on npm requires Node.js >= 20. It resolves the per-user cache, config, data and state directories for the current OS, applying XDG Base Directory rules on Linux and matching app-support and LocalAppData conventions on macOS and Windows, so apps do not hardcode platform-specific paths. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
DotenvOpen sourceDotenv is free open-source software released under the BSD 2-Clause License; the dotenv package latest 18.0.10 on npm requires Node.js >= 12. It parses a .env file and assigns missing keys to process.env, so secrets and per-environment settings stay out of committed source and real shell variables take precedence. The open-source loader itself has no paid commercial edition; dotenv.org also offers paid team platform tiers that are outside this package (data as of Nov 22, 2026).Nov 22, 2026
ConfOpen sourceConf is free open-source software released under the MIT License; the conf package latest 16.0.0 on npm requires Node.js >= 22. It persists app preferences to a JSON file in the per-user platform config directory, validates against a schema, watches for changes and supports migrations between settings versions, so desktop and CLI apps keep settings across restarts. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026

3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.

Full pricing breakdown

Env Paths's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.

Open source does not always mean every hosted version is free.

Key pricing: Env Paths is free open-source software released under the MIT License; the env-paths package latest 4.0.0 on npm requires Node.js >= 20. It resolves the per-user cache, config, data and state directories for the current OS, applying XDG Base Directory rules on Linux and matching app-support and LocalAppData conventions on macOS and Windows, so apps do not hardcode platform-specific paths. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).

Estimate your monthly bill with our calculator →Or build a full stack around your budget →

Pricing Guides & Comparisons

Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.

⭐ Rate this tool

How would you rate this tool?

🚀 Never Miss a New AI Coding Tool

Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.

Tool Information

  • Official Websitegithub.com
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates