nodejs-markdown-pdf
LOW
maintainer XZS
7 votes
scanned 2026-09-17 00:27:14.276658
Why flagged
The package installs a known npm package from the official npm registry using a variable name, but the source is verifiable and the build process is standard for Node.js packages on AUR.
Triggered rules
Low
AI review of an ambiguous pattern
llm_review
The static rules found a suspicious pattern they could not resolve, so an AI model (qwen/qwen3-235b-a22b-07-25) reviewed it and judged it LOW (confidence 95%): The package installs a known npm package from the official npm registry using a variable name, but the source is verifiable and the build process is standard for Node.js packages on AUR.
-
PKGBUILD:23
npm install -g --prefix "$pkgdir/usr" $_npmname@${pkgver//_/-}
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: XZS <d dot f dot fischer at web dot de>
2
# Contributor: Jonas Amundsen <jonasba+aur at gmail dot com>
3
4
_npmname=markdown-pdf
5
pkgname=nodejs-$_npmname
6
pkgver=11.0.0
7
pkgrel=2
8
pkgdesc="Markdown to PDF converter"
9
arch=('any')
10
url="https://github.com/alanshaw/markdown-pdf"
11
license=('MIT')
12
depends=('nodejs' 'phantomjs')
13
makedepends=('npm')
14
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-${pkgver//_/-}.tgz)
15
noextract=($_npmname-${pkgver//_/-}.tgz)
16
sha1sums=('9916faec08dd3d8300622ea36447866fb299eecc')
17
18
package() {
19
cd "$srcdir"
20
local _npmdir="$pkgdir/usr/lib/node_modules/"
21
mkdir -p "$_npmdir"
22
cd "$_npmdir"
23
npm install -g --prefix "$pkgdir/usr" $_npmname@${pkgver//_/-}
24
25
# Non-deterministic race in npm gives 777 permissions to random directories.
26
# See https://github.com/npm/cli/issues/1103 for details.
27
find "${pkgdir}/usr" -type d -exec chmod 755 {} +
28
29
# npm gives ownership of ALL FILES to build user
30
# https://bugs.archlinux.org/task/63396
31
chown -R root:root "${pkgdir}"
32
}
33
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 1 |
| 2026-09-16 00:03:17 | Low | 1 |
| 2026-09-15 00:25:31 | Low | 1 |
| 2026-09-14 00:27:57 | Low | 1 |
| 2026-09-13 00:19:54 | Low | 1 |
| 2026-09-12 00:25:17 | Low | 1 |
| 2026-09-11 00:19:22 | Low | 1 |
| 2026-09-10 00:22:44 | Low | 1 |
| 2026-09-09 00:04:09 | Low | 1 |
| 2026-09-08 00:18:08 | Low | 1 |
| 2026-09-07 00:30:15 | Low | 1 |
| 2026-09-06 00:17:06 | Low | 1 |
| 2026-09-05 00:16:27 | Low | 1 |
| 2026-09-04 00:03:13 | Low | 1 |
| 2026-09-03 00:15:47 | Low | 1 |
| 2026-09-02 00:02:31 | Low | 1 |
| 2026-09-01 00:11:19 | Low | 1 |
| 2026-08-31 00:19:57 | Low | 1 |
| 2026-08-30 00:04:14 | Low | 1 |
| 2026-08-29 00:29:17 | Low | 1 |