resolve-package-path

  • Version 4.0.3
  • Published
  • 54.2 kB
  • 1 dependency
  • MIT license

Install

npm i resolve-package-path
yarn add resolve-package-path
pnpm add resolve-package-path

Overview

a special purpose fast memoizing way to resolve a node modules package.json

Index

Variables

variable findUpPackagePath

let findUpPackagePath: (baseDir: string, _cache?: boolean | Cache) => string;

    Functions

    function getRealDirectoryPath

    getRealDirectoryPath: (directoryPath: string) => string | null;

      function getRealFilePath

      getRealFilePath: (filePath: string) => string | null;

        function resolvePackagePath

        resolvePackagePath: typeof resolvePackagePath;

          Package Files (1)

          Dependencies (1)

          Dev Dependencies (20)

          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/resolve-package-path.

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