UNPKG

csproj-integrity

Version:
22 lines (18 loc) 450 B
"use strict"; const globby = require("globby"); const getDiff = require("./getDiff"); /** * Compare between local files and array of files * * @param {string} path // path of local files * @param {array} files * @returns {array} */ module.exports = function(path, files) { return new Promise(resolve => { globby(path).then(localfiles => { let diff = getDiff(localfiles, files); resolve(diff); }); }); }