JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 64788
  • Score
    100M100P100Q173204F
  • License MIT

Get global npm prefix. Respects npmrc configs

Package Exports

  • npm-prefix

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 (npm-prefix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm

npm-prefix

Dependency Status

Get global npm prefix. Respects npmrc configs.

Example

var npmPrefix = require('npm-prefix');

npmPrefix()
//=> '/usr/local'

API

npmPrefix()

Returns the npm prefix.

Install

npm install npm-prefix

License

MIT