Socket
Socket
Sign inDemoInstall

@pnpm/link-bins

Package Overview
Dependencies
16
Maintainers
2
Versions
138
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/link-bins


Version published
Weekly downloads
259K
increased by6.53%
Maintainers
2
Created
Weekly downloads
 

Package description

What is @pnpm/link-bins?

@pnpm/link-bins is a utility package that helps in linking binaries from node_modules/.bin to a specified directory. This is particularly useful in monorepos or when working with multiple packages that need to share executables.

What are @pnpm/link-bins's main functionalities?

Linking Binaries

This feature allows you to link all binaries from the node_modules/.bin directory to a specified destination directory. This is useful for making executables available in a consistent location.

const { linkBins } = require('@pnpm/link-bins');
const path = require('path');

const sourceDir = path.join(__dirname, 'node_modules/.bin');
const destDir = path.join(__dirname, 'bin');

linkBins(sourceDir, destDir).then(() => {
  console.log('Binaries linked successfully');
}).catch(err => {
  console.error('Error linking binaries:', err);
});

Other packages similar to @pnpm/link-bins

Readme

Source

Link bins to node_modules/.bin

npm version Build Status

Installation

pnpm add @pnpm/link-bins

Usage

import linkBins, {linkBinsOfPackages} from '@pnpm/link-bins'

function warn (msg) { console.warn(msg) }

await linkBins('node_modules', 'node_modules/.bin', {warn})

const packages = [{manifest: packageJson, location: pathToPackage}]
await linkBinsOfPackages(packages, 'node_modules/.bin', {warn})

License

MIT

Keywords

FAQs

Last updated on 17 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc