UNPKG

serverless

Version:

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

12 lines (8 loc) 237 B
'use strict'; const fse = require('./fse'); const parse = require('./parse'); function readFile(filePath) { return fse.readFileAsync(filePath, 'utf8') .then((contents) => parse(filePath, contents)); } module.exports = readFile;