REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 512 B
Close
/opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules/locate-path/index.js
Text
Base64
'use strict'; const path = require('path'); const pathExists = require('path-exists'); const pLocate = require('p-locate'); module.exports = (iterable, opts) => { opts = Object.assign({ cwd: process.cwd() }, opts); return pLocate(iterable, el => pathExists(path.resolve(opts.cwd, el)), opts); }; module.exports.sync = (iterable, opts) => { opts = Object.assign({ cwd: process.cwd() }, opts); for (const el of iterable) { if (pathExists.sync(path.resolve(opts.cwd, el))) { return el; } } };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
512 B
lrw-r--r--
2021-09-28 10:29:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
license
1.09 KB
lrw-r--r--
2021-09-28 10:29:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.72 KB
lrw-r--r--
2021-09-28 10:29:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.md
1.51 KB
lrw-r--r--
2021-09-28 10:29:16
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).