SILENT KILLERPanel

Current Path: > > lib > node_modules > npm > node_modules > cacache > lib > content


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/node_modules/npm/node_modules/cacache/lib/content

NameTypeSizeLast ModifiedActions
path.js File 750 bytes March 10 2021 14:36:36.
read.js File 5375 bytes March 10 2021 14:36:36.
rm.js File 472 bytes March 10 2021 14:36:36.
write.js File 4463 bytes March 10 2021 14:36:36.

Reading File: //lib/node_modules/npm/node_modules/cacache/lib/content/rm.js

'use strict'

const BB = require('bluebird')

const contentPath = require('./path')
const hasContent = require('./read').hasContent
const rimraf = BB.promisify(require('rimraf'))

module.exports = rm
function rm (cache, integrity) {
  return hasContent(cache, integrity).then(content => {
    if (content) {
      const sri = content.sri
      if (sri) {
        return rimraf(contentPath(cache, sri)).then(() => true)
      }
    } else {
      return false
    }
  })
}

SILENT KILLER Tool