contently-json-api
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Contently JSON API

Generates static JSON files.

Usage

const ContentlyJsonApi = require('contently-json-api');
contentlyInstance.use(contentlyJsonApi, options);

Options

interface Options {
	/**
	 * @name output
	 * @description Output path relative to cwd.
	 * @default content/
	 */
	output: string;

	/**
	 * @name transformer
	 * @description A custom transformer function, that given with the results generates a file tree.
	 */
	transformer: (
		instance: Contently,
		options: Options
	) => FileTree | Promise<FileTree>;
}

Readme

Keywords

none

Package Sidebar

Install

npm i contently-json-api

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

5.96 kB

Total Files

7

Last publish

Collaborators

  • krmax44