
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@node-kit/pnpm-workspace-root
Advanced tools
# use pnpm
$ pnpm install -D @node-kit/pnpm-workspace-root
# use yarn
$ yarn add -D @node-kit/pnpm-workspace-root
# use npm
$ npm install -D @node-kit/pnpm-workspace-root
use import
import { pnpmWorkspaceRoot, pnpmWorkspaceRootSync } from '@node-kit/pnpm-workspace-root'
pnpmWorkspaceRoot()
// or
pnpmWorkspaceRootSync()
use require
const { pnpmWorkspaceRoot, pnpmWorkspaceRootSync } = require('@node-kit/pnpm-workspace-root')
pnpmWorkspaceRoot()
// or
pnpmWorkspaceRootSync()
pnpmWorkspaceRoot(cwd)
& pnpmWorkspaceRootSync(cwd)
Param | Description | Type | Optional value | Required | Default value |
---|---|---|---|---|---|
cwd | running path | string | - | false | - |
declare function pnpmWorkspaceRoot(cwd?: string): Promise<string | null>
declare function pnpmWorkspaceRootSync(cwd?: string): string | null
import { pnpmWorkspaceRoot, pnpmWorkspaceRootSync } from '@node-kit/pnpm-workspace-root'
pnpmWorkspaceRoot().then(path => {
console.log('The pnpm workspace root is: ', path) // /Users/user/path/of/package/root or null
})
console.log('The pnpm workspace root is: ', pnpmWorkspaceRootSync()) // /Users/user/path/of/package/root or null
Please open an issue here.
2024.11.26 v3.3.1
FAQs
A simple utility to get the pnpm workspace root
The npm package @node-kit/pnpm-workspace-root receives a total of 22,400 weekly downloads. As such, @node-kit/pnpm-workspace-root popularity was classified as popular.
We found that @node-kit/pnpm-workspace-root demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.