</>PackageGraphPackageGraph

appdirsjs

npmv1.2.8TypeScript

OS-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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

9.8 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

javascriptFull 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/expo
Example truncated — see the full README.

Dependencies

Declared by appdirsjs v1.2.8. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (10)

@eslint/js ^10.0.1@types/jest ^30.0.0@types/node ^26.1.2@typescript-eslint/eslint-plugin ^8.65.0@typescript-eslint/parser ^8.65.0eslint ^10.8.0globals ^17.8.0jest ^30.4.2ts-jest ^29.4.12typescript ^6.0.3

Used by

Popular packages that depend on appdirsjs.

Relationship graph

Dependencies (left) and dependents (right) of appdirsjs.

@react-native-com…appdirsjs
appdirsjs dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 23 days apart.

Recent versions of appdirsjs
VersionPublishedSizeLicense
1.2.8latest1 month ago9.8 KBMIT
1.2.74 years ago7.3 KBMIT
1.2.64 years ago7.3 KBMIT
1.2.55 years ago7.2 KBMIT
1.2.45 years ago7.2 KBMIT
1.2.35 years ago6.1 KBMIT
1.2.25 years ago7.4 KBMIT
1.2.15 years ago16 KBMIT
1.2.05 years ago16 KBMIT
1.1.05 years ago14 KBMIT
1.0.05 years ago12 KBMIT

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.