UNPKG

@_all_docs/cache

Version:

Fetch, cache, & map/reduce :origin/{_all_docs,:packument}` documents for a set of lexographically sorted pivots by range or partition

14 lines (8 loc) 325 B
const { join } = require('node:path'); const { listPartitions, writeAllDocsIndex } = require('../src/cache'); (async function () { const cacheDir = join(__dirname, '..', 'cache'); const concurrency = 10; const partitions = await listPartitions(cacheDir); await writeAllDocsIndex({ partitions, cacheDir }); })();