csproj-integrity
Version:
Check csproj file (Visual Studio) integrity
22 lines (18 loc) • 450 B
JavaScript
;
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);
});
});
}