UNPKG

monogram

Version:

TAO (aspect-oriented) modeling for MongoDB

16 lines (11 loc) 426 B
const acquit = require('acquit'); const fs = require('fs'); require('acquit-ignore')(); require('acquit-markdown')(null, { it: true }); acquit.output(function(str) { return str.replace(/acquit:ignore:end\s+/g, ''); }); const header = fs.readFileSync('./HEADER.md', 'utf8'); const markdown = acquit.parse(fs.readFileSync('./test/examples.test.js', 'utf8')); fs.writeFileSync('./README.md', `${header}\n\n${markdown}`);