REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.56 KB
Close
/opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules/bin-links/lib/link-mans.js
Text
Base64
const { dirname, relative, join, resolve, basename } = require('path') const linkGently = require('./link-gently.js') const manTarget = require('./man-target.js') const linkMans = ({ path, pkg, top, force }) => { const target = manTarget({ path, top }) if (!target || !pkg.man || !Array.isArray(pkg.man) || !pkg.man.length) { return Promise.resolve([]) } // break any links to c:\\blah or /foo/blah or ../blah // and filter out duplicates const set = [...new Set(pkg.man.map(man => man ? join('/', man).replace(/\\|:/g, '/').slice(1) : null) .filter(man => typeof man === 'string'))] return Promise.all(set.map(man => { const parseMan = man.match(/(.*\.([0-9]+)(\.gz)?)$/) if (!parseMan) { return Promise.reject(Object.assign(new Error('invalid man entry name\n' + 'Man files must end with a number, ' + 'and optionally a .gz suffix if they are compressed.' ), { code: 'EBADMAN', path, pkgid: pkg._id, man, })) } const stem = parseMan[1] const sxn = parseMan[2] const base = basename(stem) const absFrom = resolve(path, man) /* istanbul ignore if - that unpossible */ if (absFrom.indexOf(path) !== 0) { return Promise.reject(Object.assign(new Error('invalid man entry'), { code: 'EBADMAN', path, pkgid: pkg._id, man, })) } const to = resolve(target, 'man' + sxn, base) const from = relative(dirname(to), absFrom) return linkGently({ from, to, path, absFrom, force }) })) } module.exports = linkMans
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
bin-target.js
329 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
check-bin.js
2.02 KB
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
check-bins.js
493 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fix-bin.js
1.13 KB
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
get-node-modules.js
534 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
get-paths.js
1.22 KB
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
get-prefix.js
147 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
1.33 KB
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
is-windows.js
118 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link-bin.js
343 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link-bins.js
775 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link-gently.js
2.55 KB
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link-mans.js
1.56 KB
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
man-target.js
232 B
lrw-r--r--
2023-12-06 18:07:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
shim-bin.js
2.05 KB
lrw-r--r--
2023-12-06 18:07:50
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).