UNPKG

sls3-legacy

Version:

SLS3 Legacy - A fork of Serverless Framework v3

11 lines (7 loc) 249 B
'use strict'; const fsp = require('fs').promises; const parse = require('./parse'); async function readFile(filePath) { return fsp.readFile(filePath, 'utf8').then((contents) => parse(filePath, contents)); } module.exports = readFile;