Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

prismic-helpers

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prismic-helpers

Set of helpers to manage prismic data from api v2

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
2
Created
Source

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)

FAQs

Package last updated on 16 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts