I created a nodejs tool with Grunt that uses find command in Linux. When I run the module in Windows, the find command is different, so I won't get the same result.
This is the grunt task:
exec: {
collectJSON: {
cmd: "find " + PROJECT_PATH + " -path '**/" + DIST_REGION + "/**/*.json' ! -name '_*'",
stdout: false,
callback: function (error, stdout, stderr) {
grunt.file.write(jsonPath, stdout);
}
}
},
I heard that npm is a package manager and it can take any "program" as our module's dependency, so I was wonder if there is any npm package can help me to run the find command in Windows (and others environment as well).
Any help would be appreciated!