0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.145.58.141


Current Path : /proc/self/root/usr/share/npm/lib/cache/
Upload File :
Current File : //proc/self/root/usr/share/npm/lib/cache/cached-package-root.js

var assert = require('assert')
var resolve = require('path').resolve

var npm = require('../npm.js')

module.exports = getCacheRoot

function getCacheRoot (data) {
  assert(data, 'must pass package metadata')
  assert(data.name, 'package metadata must include name')
  assert(data.version, 'package metadata must include version')

  return resolve(npm.cache, data.name, data.version)
}