New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@pnpm/link-bins

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/link-bins

Link bins to node_modules/.bin

1000.0.6
Version published
Weekly downloads
327K
8.6%
Maintainers
2
Weekly downloads
 
Created

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

FAQs

Package last updated on 03 Feb 2025

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