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

@pnpm/link-bins

Package Overview
Dependencies
Maintainers
3
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

  • 5.3.16
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
267K
increased by4.44%
Maintainers
3
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 19 Oct 2020

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