PHP 8.2.30
Preview: check-bins.js Size: 493 B
/opt/alt/alt-nodejs22/root/usr/lib/node_modules/npm/node_modules/bin-links/lib/check-bins.js

const checkBin = require('./check-bin.js')
const normalize = require('npm-normalize-package-bin')
const checkBins = async ({ pkg, path, top, global, force }) => {
  // always ok to clobber when forced
  // always ok to clobber local bins, or when forced
  if (force || !global || !top) {
    return
  }

  pkg = normalize(pkg)
  if (!pkg.bin) {
    return
  }

  await Promise.all(Object.keys(pkg.bin)
    .map(bin => checkBin({ bin, path, top, global, force })))
}
module.exports = checkBins

Directory Contents

Dirs: 0 × Files: 15

Name Size Perms Modified Actions
329 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download
2.02 KB lrw-r--r-- 2026-02-23 06:54:00
Edit Download
493 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download
1.13 KB lrw-r--r-- 2026-02-23 06:54:00
Edit Download
534 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download
1.22 KB lrw-r--r-- 2026-02-23 06:54:00
Edit Download
147 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download
1.33 KB lrw-r--r-- 2026-02-23 06:54:00
Edit Download
118 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download
343 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download
775 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download
2.69 KB lrw-r--r-- 2026-02-23 06:54:00
Edit Download
1.50 KB lrw-r--r-- 2026-02-23 06:54:00
Edit Download
232 B lrw-r--r-- 2026-02-23 06:54:00
Edit Download
2.05 KB lrw-r--r-- 2026-02-23 06:54:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).