JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 325
  • Score
    100M100P100Q74751F
  • License CC0-1.0

Resolve the path of npm cache folder from environment variables

Package Exports

  • npm-cache-env

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

Readme

npm-cache-env

NPM version Build Status Coverage Status

Resolve the path of npm cache folder from environment variables

// NPM_CONFIG_CACHE=/foo/bar node ./example.js
const npmCacheEnv = require('npm-cache-env');

npmCacheEnv(); //=> '/foo/bar'

Installation

Use npm.

npm install npm-cache-env

API

const npmCacheEnv = require('npm-cache-env');

npmCacheEnv()

Return: String or null

License

Creative Commons Zero v1.0 Universal