Socket
Socket
Sign inDemoInstall

@capgo/find-package-manager

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capgo/find-package-manager - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

1

index.d.ts
export function findPackageManagerType (path?: string): 'yarn' | 'npm' | 'bun' | 'pnpm' | 'unknown';
export function findInstallCommand (packageManagerType?: 'yarn' | 'npm' | 'bun' | 'pnpm' | 'unknown'): 'install' | 'add';

@@ -22,2 +22,17 @@ import { existsSync } from 'fs';

}
export const findInstallCommand = (packageManagerType = findPackageManagerType()) => {
switch (packageManagerType) {
case 'bun':
return 'install';
case 'pnpm':
return 'install';
case 'yarn':
return 'add';
case 'npm':
return 'install';
default:
return 'install';
}
}
// console.log('findPackageManagerType', findPackageManagerType())

2

package.json

@@ -5,3 +5,3 @@ {

"public": true,
"version": "0.0.11",
"version": "0.0.12",
"license": "MIT",

@@ -8,0 +8,0 @@ "description": "Live update for capacitor apps",

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