UNPKG

@sidekick-coder/db

Version:

Cli Tool to manipulate data from diferent sources

15 lines (12 loc) 302 B
import { format } from 'date-fns'; // src/core/idStrategy/createDate.ts function createDate() { return { name: "date", async create(config) { const pattern = config.pattern || "yyyy-MM-dd"; return format(/* @__PURE__ */ new Date(), pattern); } }; } export { createDate };