0.2.0 • Published 5 years ago

contently-json-api v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

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>;
}
0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago