mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
9 lines
222 B
JavaScript
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;
|