PkgRadar

Package evidence

[email protected]

Install Lifecycle Remote Or Exec: postinstall="node -e \"const fs=require('fs');['react','react-dom'].forEach(p=>{const d=__dirname+'/node_modules/'+p;if(fs.existsSync(d)){fs.rmSync(d,{recursive:true});console.log('removed local '+p)}})\""

Trust signals

Why this verdict

PkgRadar discounts a release’s score when public reputation argues against novel malware. The verdict above already reflects these — the panel just explains what was applied.

Versions published
6
First published
Jun 2026
Publisher
vinayvetir

Recommended action

Block this update

Static evidence trips multiple high-signal indicators. Quarantine the release until the publisher validates the change or you can rule out the indicators below.

Block this release in CIcurl · GitHub Actions

Fail the build when this package version is added or upgraded. Replace $PKGRADAR_TOKEN with a Pro / Team API key from your dashboard.

curl -fsS https://pkgradar.com/gate/npm \
  -H "Authorization: Bearer $PKGRADAR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"specs":["[email protected]"],"fail_on":"high"}'

GitHub Actions step:

- name: PkgRadar gate
  run: |
    curl -fsS https://pkgradar.com/gate/npm \
      -H "Authorization: Bearer ${{ secrets.PKGRADAR_TOKEN }}" \
      -H "Content-Type: application/json" \
      -d '{"specs":["[email protected]"],"fail_on":"high"}'
Publishervinayvetir
Artifact bytes423,086
Previous version1.0.4
Published2026-06-09T09:54:53.364Z
SHA-256b027d9460dce337050b9b2b567e76bd275c887a79f404b9ff1a60c54f4cf43ee

Why flagged

What the scanner saw

Install Lifecycle Remote Or Exec: postinstall="node -e \"const fs=require('fs');['react','react-dom'].forEach(p=>{const d=__dirname+'/node_modules/'+p;if(fs.existsSync(d)){fs.rmSync(d,{recursive:true});console.log('removed local '+p)}})\""

Not observed: package install, lifecycle script execution, or sandbox execution. PkgRadar only inspects on-disk artifacts.

Availability ledger

available

high
Last checked
highRisk
35Score
1.0.5Version
Status history (1 event)
  1. newavailable · risk high · score 35 · status changed

Evidence

Static findings

3 static · 0 from release diff · showing high-signal first.

SeverityKindPathDetailPoints
highInstall Lifecycle Remote Or Execpackage.jsonpostinstall="node -e \"const fs=require('fs');['react','react-dom'].forEach(p=>{const d=__dirname+'/node_modules/'+p;if(fs.existsSync(d)){fs.rmSync(d,{recursive:true});console.log('removed local '+p)}})\""30
mediumNew Account With Lifecycle Hookpackage.jsonpackage first published 0 day(s) ago, 6 total version(s), has lifecycle hook10
Show all 3 findings (low-signal and informational)
SeverityKindPathDetailPoints
highInstall Lifecycle Remote Or Execpackage.jsonpostinstall="node -e \"const fs=require('fs');['react','react-dom'].forEach(p=>{const d=__dirname+'/node_modules/'+p;if(fs.existsSync(d)){fs.rmSync(d,{recursive:true});console.log('removed local '+p)}})\""30
mediumNew Account With Lifecycle Hookpackage.jsonpackage first published 0 day(s) ago, 6 total version(s), has lifecycle hook10
lowInstall-time lifecycle scriptpackage.jsonpostinstall="node -e \"const fs=require('fs');['react','react-dom'].forEach(p=>{const d=__dirname+'/node_modules/'+p;if(fs.existsSync(d)){fs.rmSync(d,{recursive:true});console.log('removed local '+p)}})\""5

Manifest

Package metadata

Scripts8
  • buildtsup
  • devvite
  • linteslint .
  • postinstallnode -e "const fs=require('fs');['react','react-dom'].forEach(p=>{const d=__dirname+'/node_modules/'+p;if(fs.existsSync(d)){fs.rmSync(d,{recursive:true});console.log('removed local '+p)}})"
  • prepublish:checknode scripts/prepublish-check.mjs
  • prepublishOnlynode scripts/prepublish-check.mjs --pre && npm run build && node scripts/prepublish-check.mjs --post
  • previewvite preview
  • pushnpm run build && yalc publish --push
Dependencies1
  • event-source-polyfill^1.0.31