The !file tag for a project rooted at root: it reads the file its argument names -- relative to root, or absolute -- as UTF-8 text.
!file
root
Text, not a Buffer, because what it is for is text: PEM keys and certificates, which Fastify and node:tls take as strings.
Buffer
node:tls
The environment may choose the file (!file("${TLS_KEY}")), which !module deliberately does not allow for code: reading a file runs nothing.
!file("${TLS_KEY}")
!module
the directory a relative path is read from
loadFileSync('config/config.casc', { tags: { file: fileTag(process.cwd()) } }); Copy
loadFileSync('config/config.casc', { tags: { file: fileTag(process.cwd()) } });
The
!filetag for a project rooted atroot: it reads the file its argument names -- relative toroot, or absolute -- as UTF-8 text.Text, not a
Buffer, because what it is for is text: PEM keys and certificates, which Fastify andnode:tlstake as strings.The environment may choose the file (
!file("${TLS_KEY}")), which!moduledeliberately does not allow for code: reading a file runs nothing.