Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libnpmexec

Package Overview
Dependencies
Maintainers
7
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libnpmexec - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

8

lib/cache-install-dir.js

@@ -5,8 +5,8 @@ const crypto = require('crypto')

const cacheInstallDir = ({ cache, packages }) => {
if (!cache)
throw new Error('Must provide a valid cache path')
const cacheInstallDir = ({ npxCache, packages }) => {
if (!npxCache)
throw new Error('Must provide a valid npxCache path')
// only packages not found in ${prefix}/node_modules
return resolve(cache, '_npx', getHash(packages))
return resolve(npxCache, getHash(packages))
}

@@ -13,0 +13,0 @@

@@ -127,4 +127,4 @@ const { delimiter, dirname, resolve } = require('path')

if (needInstall) {
const { cache } = flatOptions
const installDir = cacheInstallDir({ cache, packages })
const { npxCache } = flatOptions
const installDir = cacheInstallDir({ npxCache, packages })
await mkdirp(installDir)

@@ -131,0 +131,0 @@ const arb = new Arborist({

{
"name": "libnpmexec",
"version": "1.2.0",
"version": "2.0.0",
"files": [

@@ -5,0 +5,0 @@ "lib"

@@ -20,3 +20,4 @@ # libnpmexec

args: ['yosay', 'Bom dia!'],
cache: '~/.npm',
cache: '~/.npm/_cacache',
npxCache: '~/.npm/_npx',
yes: true,

@@ -34,2 +35,3 @@ })

- `cache`: The path location to where the npm cache folder is placed **String**
- `npxCache`: The path location to where the npx cache folder is placed **String**
- `color`: Output should use color? **Boolean**, defaults to `false`

@@ -36,0 +38,0 @@ - `localBin`: Location to the `node_modules/.bin` folder of the local project to start scanning for bin files **String**, defaults to `./node_modules/.bin`. **libexec** will walk up the directory structure looking for `node_modules/.bin` folders in parent folders that might satisfy the current `arg` and will use that bin if found.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc