Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/assert. Assertion library.
Something went wrong. Try again.
12345678910111213#!/usr/bin/env nodeimport { readFileSync, writeFileSync } from "fs";
const [ ,, targetPath ] = process.argv
if (!targetPath) process.exit(1)
const readme = readFileSync(0, { encoding: `utf8` }).trim().replaceAll(`*/`, `*\u200D/`).replaceAll(`\n`, `\n * `)const targetContent = readFileSync(targetPath, { encoding: `utf8` })
writeFileSync(targetPath, `/**\n * ${readme}\n * @module\n */\n${targetContent}`,)