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