Skip to content

Commit

Permalink
chore: add banner scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 2, 2023
1 parent a3e9597 commit d83aec0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/clean-banner.js
Original file line number Diff line number Diff line change
@@ -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'
)
8 changes: 8 additions & 0 deletions tools/return-banner.js
Original file line number Diff line number Diff line change
@@ -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'
)

0 comments on commit d83aec0

Please sign in to comment.