mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-12 11:16:09 +09:00
remove timer and simon
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
var path = require('path');
|
||||
var findUp = require('find-up');
|
||||
|
||||
module.exports = function (cwd) {
|
||||
return findUp('package.json', {cwd: cwd}).then(function (fp) {
|
||||
return fp ? path.dirname(fp) : null;
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.sync = function (cwd) {
|
||||
var fp = findUp.sync('package.json', {cwd: cwd});
|
||||
return fp ? path.dirname(fp) : null;
|
||||
};
|
||||
Reference in New Issue
Block a user