metalsmith-writemetadata0.4.5 • Public • Published
A metalsmith plugin to write the metadata excerpted from the files to the filesystem as json files.
$ npm install metalsmith-writemetadata
var writemetadata = ;;
Accepts as paramater a pattern like in multimatch.
Accepts an array of keys to ignore in the output. These keys are ignored regardless of where in the object hierarchy they appear.
Accepts an array of keys to ignore in the output if they are not a part of the root object.
If this value is set, the contents field which is internally represented as a Buffer, will be converted to a string by calling the method Buffer.toString with the encoding specified in the options.
If used together with the collections plugin, this plugin can also write collections.
output is a parameter for collections, determining the desired output. If asObject is false, an array will be output. Otherwise a object in following format (taking example from above):
name: 'projects'total: 9type: 'list'result: ...
This example is from a real world example: