serverless/lib/utils/fs/read-file.js
Austen 158f644cd0
feat: Refactor logging to reduce complexity (#12432)
* chore: Change logger

* chore: continue refactor

* chore: WIP

* chore: Sync
2024-04-17 13:26:31 -07:00

9 lines
222 B
JavaScript

import { promises as fsp } from 'fs';
import parse from './parse.js';
async function readFile(filePath) {
return fsp.readFile(filePath, 'utf8').then((contents) => parse(filePath, contents));
}
export default readFile;