Socket
Socket
Sign inDemoInstall

@pnpm/link-bins

Package Overview
Dependencies
14
Maintainers
3
Versions
138
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/link-bins


Version published
Maintainers
3
Created

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

npm i -S @pnpm/logger @pnpm/link-bins

Usage

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

await linkBins('node_modules', 'node_modules/.bin')

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

License

MIT © Zoltan Kochan

Keywords

FAQs

Last updated on 11 Jul 2018

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