Catalog npm
Back to packageRELEASE DETAILS

1.0.8

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-jE4P6H636DxzVpmZkhdA4hFJG/RwlSkdx7e7PIKLaNLMOMVldkyfSD1xtF4ivZAvYfl3TXG+ITvk7AzkdECiYA==",
  "shasum": "6e810874dd4a54b673ee1cb11b18d47e27e58006",
  "tarball": "https://registry.npmjs.org/221-prismic/-/221-prismic-1.0.8.tgz",
  "fileCount": 4,
  "unpackedSize": 2893,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCCl0ArJvNFs3dmEqMnPuG9wzeF/eXoA8eKpNc3zKePPQIhAJKYxtLeZRzvp55j0KkMiYYCzD9LW0TS6dI6djcvfibT"
    }
  ]
}

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

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 →