REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 659 B
Close
/home/byroehnu/.trash/node_modules11/find-root/index.js
Text
Base64
var path = require('path') var fs = require('fs') function defaultCheck (dir) { return fs.existsSync(path.join(dir, 'package.json')) } function findRoot (start, check) { start = start || module.parent.filename check = check || defaultCheck if (typeof start === 'string') { if (start[start.length - 1] !== path.sep) { start += path.sep } start = start.split(path.sep) } if (!start.length) { throw new Error('package.json not found in path') } start.pop() var dir = start.join(path.sep) try { if (check(dir)) { return dir } } catch (e) {} return findRoot(start, check) } module.exports = findRoot
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
test
DIR
-
drwxr-xr-x
2026-02-28 00:27:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.npmignore
23 B
lrw-r--r--
2026-02-28 00:26:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.travis.yml
95 B
lrw-r--r--
2026-02-28 00:27:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
659 B
lrw-r--r--
2026-02-28 00:27:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE.md
1.03 KB
lrw-r--r--
2026-02-28 00:27:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
560 B
lrw-r--r--
2026-02-28 00:26:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.59 KB
lrw-r--r--
2026-02-28 00:26:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).