mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
11 lines
228 B
JavaScript
11 lines
228 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
|