$86 GRAYBYTE WORDPRESS FILE MANAGER $89

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/pacote/lib/util/

HOME
Current File : /opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/pacote/lib/util//is-package-bin.js
// Function to determine whether a path is in the package.bin set.
// Used to prevent issues when people publish a package from a
// windows machine, and then install with --no-bin-links.
//
// Note: this is not possible in remote or file fetchers, since
// we don't have the manifest until AFTER we've unpacked.  But the
// main use case is registry fetching with git a distant second,
// so that's an acceptable edge case to not handle.

const binObj = (name, bin) =>
  typeof bin === 'string' ? { [name]: bin } : bin

const hasBin = (pkg, path) => {
  const bin = binObj(pkg.name, pkg.bin)
  const p = path.replace(/^[^\\/]*\//, '')
  for (const kv of Object.entries(bin)) {
    if (kv[1] === p) {
      return true
    }
  }
  return false
}

module.exports = (pkg, path) =>
  pkg && pkg.bin ? hasBin(pkg, path) : false

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Mar 2026 5.04 PM
root / root
0755
add-git-sha.js
0.417 KB
17 Jan 2026 1.16 AM
root / root
0644
cache-dir.js
0.596 KB
17 Jan 2026 1.16 AM
root / root
0644
is-package-bin.js
0.805 KB
17 Jan 2026 1.16 AM
root / root
0644
npm.js
0.554 KB
17 Jan 2026 1.16 AM
root / root
0644
protected.js
0.217 KB
17 Jan 2026 1.16 AM
root / root
0644
tar-create-options.js
0.893 KB
17 Jan 2026 1.16 AM
root / root
0644
trailing-slashes.js
0.232 KB
17 Jan 2026 1.16 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF