Catalog npm
Back to packageRELEASE DETAILS

1.0.10

npm

221-prismic

## How to use

Published22 Feb 2018
Direct dependencies2
Transitive dependenciesNot calculated

README

Current package documentation

221-Prismic

How to use

Import package :

let Content = require('221-prismic')

Get data from all documents :

const content = new Content({
	baseUrl: 'myprismicrepo',
	debug: true,
	lang: 'fr-fr'
})

Error callback :

content.onError((err) => {
	console.log("Something went wrong: ", err)
})

Success callback (got data) :

content.onReady(() => {
	console.log("Got data")
})

Get all keys:

var key = content.get()

Get keys of doc:

var key = content.get('header')

Get specific keys of doc:

var key = content.get('header.item1')

Github : https://github.com/Studio221/221-Prismic

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.5runtime
prismic.io
Environment
{
  "local_name": "prismic.io",
  "alias": false,
  "peer_metadata": null
}
^3.6.1runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-mE01e8ydjR7SdbdVj7U15dck73MI9QCwAyQU3IS9KNWqosxdd+XmoDLID3cJS9ZM845qSKxgkSa5MULZAOigAA==",
  "shasum": "110349c32917ef895b9003a89631746066bbb206",
  "tarball": "https://registry.npmjs.org/221-prismic/-/221-prismic-1.0.10.tgz",
  "fileCount": 4,
  "unpackedSize": 3407,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCID2JXPFdWrNrgt2C7H89Ov4BJqJuJy3H8gVd4BeV9HIcAiAn/0szUq7f+5OlP2IigssmupevFQFSd4w2M9HamKS+Kw=="
    }
  ]
}

Repository

PENDING
studio221/221-prismic

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:59 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:604159668aeca0b1cfcbd88544016bb72acaaef5d3f6ae5d283ed335b3379bcd

Other collected versions

1.0.1412 Apr1.0.1312 Apr1.0.129 Mar1.0.1122 Feb1.0.922 Feb1.0.821 FebView all collected versions →