appdirsjs
npmv1.2.8TypeScriptOS-dependent application paths for cache, data and config directories
Safe to adopt
Yes — appdirsjs scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 44 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 44 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 9.8 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding appdirsjs to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the appdirsjs README.
import appDirs from "appdirsjs";
const dirs = appDirs({ appName: "expo" });
// Display the OS-specific cache directory for temporary files
console.log("Cache Directory:", dirs.cache);
// Linux: /home/user/.cache/expo
// macOS: /Users/User/Library/Caches/expo
// Windows: C:\Users\User\AppData\Local\Temp\expo
// Display the OS-specific configuration directory for user settings
console.log("Config Directory:", dirs.config);
// Linux: /home/user/.config/expo
// macOS: /Users/User/Library/Preferences/expoDependencies
Declared by appdirsjs v1.2.8. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (10)
Used by
Popular packages that depend on appdirsjs.
Relationship graph
Dependencies (left) and dependents (right) of appdirsjs.
Frequently installed together
A comprehensive library for mime-type mapping
Find a file or directory by walking up parent directories
TypeScript definitions for node
The tiniest and the fastest library for terminal output formatting with ANSI colors
Elegant terminal spinner
No description provided.
launch editor from node.js
The semantic version parser used by npm.
Run a command using sudo, prompting the user with an OS dialog if necessary
Release history
1 release in the last two years, typically about 23 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.2.8latest | 1 month ago | 9.8 KB | MIT |
| 1.2.7 | 4 years ago | 7.3 KB | MIT |
| 1.2.6 | 4 years ago | 7.3 KB | MIT |
| 1.2.5 | 5 years ago | 7.2 KB | MIT |
| 1.2.4 | 5 years ago | 7.2 KB | MIT |
| 1.2.3 | 5 years ago | 6.1 KB | MIT |
| 1.2.2 | 5 years ago | 7.4 KB | MIT |
| 1.2.1 | 5 years ago | 16 KB | MIT |
| 1.2.0 | 5 years ago | 16 KB | MIT |
| 1.1.0 | 5 years ago | 14 KB | MIT |
| 1.0.0 | 5 years ago | 12 KB | MIT |
Overview
appdirsjs is an npm package that oS-dependent application paths for cache, data and config directories. It has 1 known dependents in the graph. The latest version is 1.2.8, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need oS-dependent application paths for cache, data and config directories and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use appdirsjs?
Yes — appdirsjs scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 44 days ago.
How do I install appdirsjs?
Run `npm install appdirsjs` to add appdirsjs to your npm project.
What license is appdirsjs released under?
appdirsjs is distributed under the MIT license.
How popular is appdirsjs?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on appdirsjs.
Is appdirsjs still maintained?
The most recent release of appdirsjs (v1.2.8) was published 1 month ago.
Does appdirsjs run install scripts?
No. appdirsjs does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.