Skip to content

Latest commit

 

History

History
66 lines (39 loc) · 937 Bytes

readme.md

File metadata and controls

66 lines (39 loc) · 937 Bytes

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