0.2.0 • Published 5 years ago
contently-json-api v0.2.0
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>;
}