Catalog npm
Back to packageRELEASE DETAILS

1.0.4

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-NBarmbxSZEAKHSWj97drwOzQ9vZ5RQh1QLvjH9rmO8QfkVYuyivahWTCHWjbcvbZDzx8FT7kChnjzfAkciBRfg==",
  "shasum": "e0b693590a9c685504d3ad16fc81c32b70b8ad7e",
  "tarball": "https://registry.npmjs.org/221-prismic/-/221-prismic-1.0.4.tgz",
  "fileCount": 4,
  "unpackedSize": 2336,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIEOD7PCsbG8pRAlrIeY2/twP0yUBkhgEuPq2WhBfiEkjAiBaz3JOFbzadVvuoxIKWuKTzxkqZbqlVMqgPmsuPPZPEQ=="
    }
  ]
}

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:58 UTC

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

Record identity

package_version:45592ab4a8d374fce8d6bacefa20cc794829ef6dc3223b68e67ae3bcdecc07f3

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 →