run-mod-script
v1.0.2
Published
Run a script with modified options and cwd
Downloads
17
Readme
[email protected]
run-mod-script runs a script with modified options and cwd. The path to the files the script is run on is modified to work in the new cwd.
runModified = require('run-mod-script')
scriptRunner = function(){
require('coffeelint/bin/coffeelint');
}
cwd = __dirname;
options = {
f: ".coffeelint.json"
};
runModified(scriptRunner, cwd, options);