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

workspace-info

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workspace-info

yarn workspace info implementation for yarn v2 berry, lerna and npm workspaces

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
969
decreased by-10.11%
Maintainers
1
Weekly downloads
 
Created
Source

workspace-info

yarn workspace info --json implementation for yarn v2 berry, lerna and npm workspaces

yarn add workspace-info

Usage as cli

workspace-info --cwd tests/example-workspace

by default peer dependencies are not included, use --peer to include them

workspace-info --peer

Usage as lib

import { getWorkspaceInfo } from 'workspace-info'

console.log(
    await getWorkspaceInfo({
        cwd,
        useLerna: false,
    }),
)

// {
//     a: {
//         location: '.../tests/example-workspace/packages/a',
//         mismatchedWorkspaceDependencies: [],
//         workspaceDependencies: ['b', 'd'],
//     },
//     b: {
//         location: '.../tests/example-workspace/packages/b',
//         mismatchedWorkspaceDependencies: [],
//         workspaceDependencies: ['d'],
//     },
//     c: {
//         location: '.../tests/example-workspace/packages/c',
//         mismatchedWorkspaceDependencies: [],
//         workspaceDependencies: ['b'],
//     },
//     d: {
//         location: '.../tests/example-workspace/packages/d',
//         mismatchedWorkspaceDependencies: [],
//         workspaceDependencies: ['c'],
//     },
// }

FAQs

Package last updated on 28 Aug 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