diff --git a/tools/clean-banner.js b/tools/clean-banner.js new file mode 100644 index 0000000..e15e04d --- /dev/null +++ b/tools/clean-banner.js @@ -0,0 +1,11 @@ +import { readFileSync, writeFileSync } from 'node:fs' + +const readme = readFileSync('README.md', 'utf8') +writeFileSync( + 'README.md', + readme.replace( + '[![Pheno Agency](/banner.svg)](https://pheno.agency)\n\n', + '' + ), + 'utf8' +) diff --git a/tools/return-banner.js b/tools/return-banner.js new file mode 100644 index 0000000..d4e0d6b --- /dev/null +++ b/tools/return-banner.js @@ -0,0 +1,8 @@ +import { readFileSync, writeFileSync } from 'node:fs' + +const readme = readFileSync('README.md', 'utf8') +writeFileSync( + 'README.md', + '[![Pheno Agency](/banner.svg)](https://pheno.agency)\n\n' + readme, + 'utf8' +)