1.0.3 • Published 4 years ago

prismic-helpers v1.0.3

Weekly downloads
86,284
License
ISC
Repository
github
Last release
4 years ago

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)