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

@pnpm/link-bins

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/link-bins

Link bins to node_modules/.bin

  • 7.2.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
146K
decreased by-43.97%
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

Keywords

FAQs

Package last updated on 03 Oct 2022

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc