Catalog npm
Back to packageRELEASE DETAILS

1.0.7

npm

221-prismic

## How to use

Published21 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-h/nNYaBTYgLMorDqDqkQW9bqFs/AeDyNmyS4KQRAS3qbCfO+GYlXD1hDD2fp/ADl21ZnOZ7GWIOaBl52q+lXfQ==",
  "shasum": "7bc2d3672c190bdb93cb47d64b3cd674a3b35f0f",
  "tarball": "https://registry.npmjs.org/221-prismic/-/221-prismic-1.0.7.tgz",
  "fileCount": 4,
  "unpackedSize": 2797,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIBQZug5Xd8KqXQ88u6KbLT/1ewV1yVmvObWO8NvSEFwpAiEA5nkhVy8D/RhsANtfaeJaZHpaCWWLOTTFrqwdK1nnEF8="
    }
  ]
}

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

Other collected versions

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