
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@yarnpkg/shell
Advanced tools
@yarnpkg/shellA JavaScript implementation of a bash-like shell (we use it in Yarn 2 to provide cross-platform scripting). This package exposes an API that abstracts both the parser and the interpreter; should you only need the parser you can check out @yarnpkg/parsers, but you probably won't need it.
import {execute} from '@yarnpkg/shell';
process.exitCode = await execute(`ls "$1" | wc -l`, [process.cwd()]);
ls *.txt)mv build/{index.js,index.build.js}, echo {foo,bar}, FOO=a,b echo {$FOO,x})2.3.0
yarn set version 2.3.0
yarn tag set of commands has been ported over from Yarn Classic as yarn npm tag.yarn info will now print many information about your dependencies. Various options are available to tweak the output, including --json. Plugin authors can provide their own information sections via the fetchPackageInfo hook.yarn stage with the -r,--reset flag will now unstage all changes that seem related to Yarn.yarn add -h to see an example).Terminate batch job (Y/N)? prompts when invoking dependency binaries.The following changes only apply to the pnp linker (which is the default install strategy):
pnpapi module now exposes a new function called getAllLocators allow you to access the list of all locators in the map without having to traverse the dependency tree. This method is considered a Yarn extension, so you should check for its existence if you plan to use it in your code.The following changes only apply to the node-modules linker:
node_modules/.bin folder as their corresponding dependencies are removed.nmHoistingLimits has appeared. It replaces what was previously known as nohoist in Yarn 1.node-modules linker, and that the strictly correct behavior can only be obtained by using the default Plug'n'Play linker.$$ and $PPIDyarn constraints --fix command will now properly persist the changes on disk.yarn unplug command will now work when used on packages with peer dependencies.yarn stage command will now allow to stage files when called without the -c,--commit flag.yarnPath setting.FAQs
Unknown package
The npm package @yarnpkg/shell receives a total of 430,847 weekly downloads. As such, @yarnpkg/shell popularity was classified as popular.
We found that @yarnpkg/shell demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.