Sha256: 669a551149dd194cd3b4135fe341d9c3f006b465f9b4f88cb9cb7f5c055f139c
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
'use strict' const util = require('util') const contentPath = require('./path') const { hasContent } = require('./read') const rimraf = util.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 } }) }
Version data entries
3 entries across 3 versions & 3 rubygems