Skip to content

Minima.js API


Minima.js API / @minimajs/disk / plugins / PartitionByDate

Interface: PartitionByDate

Properties

by

ts
by: "date";

Partition strategy — 'date' organizes by time, 'hash' by content hash


format?

ts
optional format: string;

Date format string — only used when by: 'date'. Supports common tokens: yyyy, MM, dd, HH, mm, ss.

Default

ts
'yyyy/MM/dd'