MCPcopy
hub / github.com/JoelOtter/kajero / getDate

Function getDate

src/js/markdown.js:83–88  ·  view source on GitHub ↗
(attributes)

Source from the content-addressed store, hash-verified

81}
82
83function getDate(attributes) {
84 if (attributes.created) {
85 return new Date(Date.parse(attributes.created));
86 }
87 return undefined;
88}
89
90export function parse(md) {
91 // Separate front-matter and body

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected