Documeta
object-metadata
Native, js documentation library leveragingNote: this is currently a barebonese expirement. If you're looking for robust documentation tooling, I'd recommend documentation.js.
Usage:
doc/* => es6 template string tag that expands into meta({ docstring }). If terminated with "meta:" on an othewise empty line, will instead return a function for accepting more metadata.*/ const arrayify = doc` wraps defined non-array elements in an array, always returns an array. meta: ` examples: input: 'foo' output: 'foo' input: 'foo' output: 'foo' input: undefined output: { return Array ? val : val !== undefined ? val : }doc/* => wraps defined non-array elements in an array, always returns an array.*/