Catalog npm
Back to packageRELEASE DETAILS

1.0.9

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-ftvEu1meZF8jPU3spYiJkDELQGzwcgtBbL18T8bdfErsN0p0EjrOjd6nv06tC1R3Drl+qKh0W477pqYwjv41QA==",
  "shasum": "d6850ecfc48c3958fac46f65a1610db441be989e",
  "tarball": "https://registry.npmjs.org/221-prismic/-/221-prismic-1.0.9.tgz",
  "fileCount": 4,
  "unpackedSize": 3004,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIBc4UvvWzcdyh5RIzK49PhH3Mja5rQkSuJNPHvJm31p+AiAwSn4eGTy45N8zDBHXAzzVPpQOrBa8gpJPbopGW1Ztzw=="
    }
  ]
}

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:c7b26384dc31cecab06fdf8991b7e207fefd42680dbfea857bfe87d5ba84fa87

Other collected versions

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