nodeModulesDir

Type:Function
Status:beta
Since:1.0.0
Platform:node
@blackbyte.sugar.node.package

This function simply returns the “node_modules” directory path

Params

  1. settings{}TNodeModulesDirSettings

    Some settings to configure your process

Return

  1. -String

    The package path

Example

import { nodeModulesDir } from '@blackbyte/sugar/composer`;
nodeModulesDir('lodash');

Settings

  1. cwdprocess.cwd()String

    The directory in which you want to start the research

  2. monorepofalseBoolean

    Specify if you are in a monorepo context

  3. checkExistencetrueBoolean

    Specify if you want to check if the vendor dir exists