Skip to content

weaselandfox/store-prismic

Repository files navigation

store-prismic Build Status

Store the output of a Prismic.io repo to disk.

Install

$ npm install --save store-prismic

Usage

const storePrismic = require('store-prismic');

storePrismic({
  endpoint: 'https://micro.cdn.prismic.io/api',
  output: './data.json',
});

API

storePrismic(options)

options

endpoint

Type: string
Default: -

output

Type: string
Default: -

CLI

$ 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

License

MIT © PUHA

About

Store the output of a Prismic.io repo to disk.

Resources

License

Stars

Watchers

Forks

Packages

No packages published