MCPcopy Create free account
hub / github.com/ajmnz/prisma-import / writeToVersionFile

Function writeToVersionFile

scripts/util.js:4–6  ·  view source on GitHub ↗
({ fileName = '', content })

Source from the content-addressed store, hash-verified

2const path = require('path')
3
4function writeToVersionFile({ fileName = '', content }) {
5 fs.writeFileSync(path.join(__dirname, 'versions', `./${fileName}`), content)
6}
7
8function readVersionFile({ fileName = '' }) {
9 return fs

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected