PkgRadar

Package evidence

@lucky-office/[email protected]

Install Lifecycle Remote Or Exec: postinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""

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.

Weekly downloads
429
Versions published
4
First published
May 2026
Publisher
zhangwenli

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":["@lucky-office/[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":["@lucky-office/[email protected]"],"fail_on":"high"}'
Publisherzhangwenli
Artifact bytes769,775
Previous versionnone
Published2026-05-27T06:18:37.104Z
SHA-2568e0a71032c3daee32f73a1995172dc75f91bbf29328963fed940bbc0bc6659bf

Why flagged

What the scanner saw

Install Lifecycle Remote Or Exec: postinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""

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

Availability ledger

available

high
Last checked
highRisk
35Score
0.1.0Version
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 \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""30
highNew Account With Lifecycle Hookpackage.jsonpackage first published 14 day(s) ago, 4 total version(s), has lifecycle hook25
Show all 3 findings (low-signal and informational)
SeverityKindPathDetailPoints
highInstall Lifecycle Remote Or Execpackage.jsonpostinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""30
highNew Account With Lifecycle Hookpackage.jsonpackage first published 14 day(s) ago, 4 total version(s), has lifecycle hook25
lowInstall-time lifecycle scriptpackage.jsonpostinstall="node -e \"if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}\""5

Manifest

Package metadata

Scripts8
  • buildnpm run clean && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType
  • build:3node node_modules/vue-demi/bin/vue-demi-switch 3 vue3 && vite build && npm run copyFile3
  • cleanshx rm -rf lib
  • copyFile3shx cp lib/v3/lucky-office-excel.umd.js lib/v3/index.js && shx cp src/index.css lib/v3/index.css
  • copyReadmeshx cp README.md lib/README.md
  • copyScriptsshx mkdir -p lib/script && shx cp ../../script/postinstall.js lib/script/postinstall.js && shx cp ../../script/switch-cli.js lib/script/switch-cli.js && shx cp ../../script/utils.js lib/script/utils.js
  • copyTypeshx cp index.d.ts lib/index.d.ts
  • postinstallnode -e "if(require('fs').existsSync('lib/script/postinstall.js')){require('child_process').execSync('node lib/script/postinstall.js')}else{console.log('lib/script/postinstall.js not found, skipping postinstall')}"
Dependencies2
  • @lucky-office/exceljs0.1.0
  • jszip^3.10.1