
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.