Store the output of a Prismic.io repo to disk.
$ npm install --save store-prismic
const storePrismic = require('store-prismic');
storePrismic({
endpoint: 'https://micro.cdn.prismic.io/api',
output: './data.json',
});
Type: string
Default: -
Type: string
Default: -
$ npm install --global store-prismic
$ store-prismic --help
Usage
store-prismic options
Options
-e --endpoint The Prismic API endpoint
-o --output The path to the file to save the ouput to
Example
$ store-prismic -e https://micro.cdn.prismic.io/api -o data.json
MIT © PUHA