UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

11 lines (7 loc) 239 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;