app-root-path

  • Version 3.1.0
  • Published
  • 15 kB
  • No dependencies
  • MIT license

Install

npm i app-root-path
yarn add app-root-path
pnpm add app-root-path

Overview

Determine an app's root path from anywhere inside the app

Index

Variables

variable path

const path: string;

    Functions

    function require

    require: (pathToModule: string) => ReturnType<NodeRequire>;

      function resolve

      resolve: (pathToModule: string) => string;

        function setPath

        setPath: (explicitlySetPath: string) => void;

          function toString

          toString: () => string;

            Package Files (1)

            Dependencies (0)

            No dependencies.

            Dev Dependencies (12)

            Peer Dependencies (0)

            No peer dependencies.

            Badge

            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/app-root-path.

            • Markdown
              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/app-root-path)
            • HTML
              <a href="https://www.jsdocs.io/package/app-root-path"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>