/
Mikhail823
/
todo
Обзор
Документация
Войти
/
Mikhail823
/
todo
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
todo
/
node_modules
/
cacache
/
..
lib
j
6 месяцев назад
node_modules
j
6 месяцев назад
LICENSE.md
j
6 месяцев назад
README.md
j
6 месяцев назад
get.js
j
6 месяцев назад
index.js
j
6 месяцев назад
ls.js
j
6 месяцев назад
package.json
j
6 месяцев назад
put.js
j
6 месяцев назад
rm.js
j
6 месяцев назад
verify.js
j
6 месяцев назад
cacache
Install
Table of Contents
Example
Features
Contributing
API
`> cacache.ls(cache) -> Promise`
Example
`> cacache.ls.stream(cache) -> Readable`
Example
`> cacache.get(cache, key, [opts]) -> Promise({data, metadata, integrity})`
Note
Example
`> cacache.get.stream(cache, key, [opts]) -> Readable`
Example
`> cacache.get.info(cache, key) -> Promise`
Fields
Example
`> cacache.get.hasContent(cache, integrity) -> Promise`
Example
Options
`opts.integrity`
`opts.memoize`
`opts.size`
`> cacache.put(cache, key, data, [opts]) -> Promise`
Example
`> cacache.put.stream(cache, key, [opts]) -> Writable`
Example
Options
`opts.metadata`
`opts.size`
`opts.integrity`
`opts.algorithms`
`opts.memoize`
`opts.tmpPrefix`
`> cacache.rm.all(cache) -> Promise`
Example
`> cacache.rm.entry(cache, key, [opts]) -> Promise`
Example
`> cacache.rm.content(cache, integrity) -> Promise`
Example
`> cacache.index.compact(cache, key, matchFn, [opts]) -> Promise`
`> cacache.index.insert(cache, key, integrity, opts) -> Promise`
`> cacache.clearMemoized()`
`> tmp.mkdir(cache, opts) -> Promise`
Example
`> tmp.fix(cache) -> Promise`
Example
`> tmp.withTmp(cache, opts, cb) -> Promise`
Example
Options
`opts.tmpPrefix`
Subresource Integrity Digests
Generating Digests Yourself
`> cacache.verify(cache, opts) -> Promise`
Options
`opts.concurrency`
`opts.filter`
`opts.log`
Example
`> cacache.verify.lastRun(cache) -> Promise`
Example
README.md