UNPKG

cacache

Version:

Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.

8 lines (5 loc) 143 B
'use strict' module.exports = hashToSegments function hashToSegments (hash) { return [hash.slice(0, 2), hash.slice(2, 4), hash.slice(4)] }