@itrocks/app-dir
TypeScript icon, indicating that this package has built-in type declarations

0.0.24 • Public • Published

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.

Package Sidebar

Install

npm i @itrocks/app-dir

Homepage

it.rocks

Weekly Downloads

29

Version

0.0.24

License

ISC

Unpacked Size

3.66 kB

Total Files

7

Last publish

Collaborators

  • baptistepillot