JSPM

executing-npm-path

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

A path of the currently executed npm CLI

Package Exports

  • executing-npm-path

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (executing-npm-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

executing-npm-path

npm version Build Status Build status Coverage Status

A path of the currently executed npm CLI

require('executing-npm-path'); //=> /usr/local/lib/node_modules/npm/bin/npm-cli.js

Installation

Use npm.

npm install executing-npm-path

API

const executingNpmPath = require('executing-npm-path');

executingNpmPath

Type: string or null

If the program is executed by an npm script, it exposes a path of npm-cli.js, an entry point of npm CLI.

If the program is not executed by any package managers or executed by a non-npm package manager, for example Yarn, it exposes null.

License

ISC License © 2018 Shinnosuke Watanabe