serverless/lib/utils/getCacheFilePath.js
2017-06-07 22:02:23 +07:00

13 lines
300 B
JavaScript

'use strict';
const homedir = require('os').homedir();
const path = require('path');
const md5 = require('md5');
const getCacheFilePath = function (servicePath) {
return path.join(homedir, '.serverless', 'cache',
md5(servicePath), 'autocomplete.json');
};
module.exports = getCacheFilePath;