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

@pnpm/find-workspace-dir

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/find-workspace-dir

Finds the root of a pnpm workspace

  • 900.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
449K
increased by39.7%
Maintainers
2
Weekly downloads
 
Created

What is @pnpm/find-workspace-dir?

@pnpm/find-workspace-dir is a utility package that helps you locate the root directory of a pnpm workspace. This can be particularly useful in monorepo setups where you need to perform operations relative to the workspace root.

What are @pnpm/find-workspace-dir's main functionalities?

Find Workspace Directory

This feature allows you to find the root directory of a pnpm workspace. The code sample demonstrates how to use the package to locate the workspace directory starting from the current working directory.

const findWorkspaceDir = require('@pnpm/find-workspace-dir');

(async () => {
  const workspaceDir = await findWorkspaceDir(process.cwd());
  console.log(workspaceDir);
})();

Other packages similar to @pnpm/find-workspace-dir

Keywords

FAQs

Package last updated on 06 Dec 2024

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