JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q70182F
  • License ISC

A Node.js library to determine the root directory of your project

Package Exports

  • @itrocks/app-dir

Readme

npm version npm downloads GitHub issues discord

app-dir

A Node.js library to determine the root directory of your project.

Usage

Installation

npm i @itrocks/app-dir

Example

import { appDir } from '@itrocks/app-dir'
console.log(appDir)
// Prints the root directory of your main application

How it works

This library determines your application's root directory by resolving the ./node_modules/@itrocks/app-dir/app-dir.js path relative to your project. It uses this relative path to calculate the full path to your application.