Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* @func cwd()
* @ret {String}
*/
cwd: util.cwd,
/**
* @func chdir(path)
* @arg path {String}
* @ret {bool}
*/
chdir: util.chdir,
/**
* @func isAbsolute() is absolute path
*/
isAbsolute: pkg.isAbsolute, // func
/**
* @func resolve() resolve path
*/
resolve: pkg.resolve, // func
/**
* full filename
*/
filename: function (path) {
return get_path(path).filename;
},
/**
* full path
*/
dev: !!_pkg.options.dev,
/**
* @start argv options
*/
options: _pkg.options,
/**
* @func resolve(...args)
*/
resolve: _pkg.resolve,
/**
* @func isAbsolute(path)
*/
isAbsolute: _pkg.isAbsolute,
/**
* Empty function
*/
noop: function() { },
/**
* @func isAsync(func)
*/
isAsync: function(func) {
return is_async(func);
},
/**
* @func nextTick(cb)
*/