prismic-helpers
v1.0.3
Published
Set of helpers to manage prismic data from api v2
Downloads
167,514
Readme
JavaScript library with a set of helpers for Prismic
Get link url from any kind of Prismic Link: DocumentLink, WebLink, MediaLink
PrismicHelpers.Link.url(mydoc.data.myLink, ctx.linkResolver)
Convert a Date as string from the API to an ISO Date:
PrismicHelpers.Date(mydoc.data.mydate)