PHP 8.1.33
Preview: rm.js Size: 661 B
//lib/node_modules/npm/node_modules/cacache/rm.js

'use strict'

const BB = require('bluebird')

const index = require('./lib/entry-index')
const memo = require('./lib/memoization')
const path = require('path')
const rimraf = BB.promisify(require('rimraf'))
const rmContent = require('./lib/content/rm')

module.exports = entry
module.exports.entry = entry
function entry (cache, key) {
  memo.clearMemoized()
  return index.delete(cache, key)
}

module.exports.content = content
function content (cache, integrity) {
  memo.clearMemoized()
  return rmContent(cache, integrity)
}

module.exports.all = all
function all (cache) {
  memo.clearMemoized()
  return rimraf(path.join(cache, '*(content-*|index-*)'))
}

Directory Contents

Dirs: 2 × Files: 13

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
locales DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
22.31 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
58 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
58 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
6.71 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
58 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
755 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
121 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
3.32 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.91 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
20.48 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
20.00 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
661 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
55 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).