MCPcopy Create free account
hub / github.com/vercel/examples / getReadme

Function getReadme

internal/scripts/lib/get-readme.ts:3–10  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1import fs from 'fs/promises'
2
3export default async function getReadme(path: string) {
4 return fs
5 .readFile(`./${path}/README.md`, 'utf8')
6 .then((str) => str)
7 .catch((err) => {
8 if (err.code !== 'ENOENT') throw err
9 })
10}

Callers 1

updateTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected