Registry / devops / pakku
library0.1.1jsnpmunverified

Pakku (v1.4.1) is a command-line web bundler and compiler that processes entire web sites: it scans for assets, links, pages, and images; versionizes filenames using Git commit IDs (cache busting); optimizes/minifies HTML, JavaScript, CSS, Less, JPEG, PNG, GIF, SVG; and supports data attributes for inline expansion and dev-only stripping. Differentiated by its holistic site-centric approach (vs module bundlers like Webpack) and zero-config philosophy. Released under MIT/BSD. Maintained on GitHub (zanona/pakku). Release cadence is irregular; latest stable v1.4.1 (2020-03-29). Requires Node >=6.

npm install pakku
INSTALL
IMPORT
SIG · PAKKU
P
pakku
devopsjavascriptv0.1.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CLI
npx pakku <input> <output>
pakku <input>
Pakku is a CLI tool; run via npx or global install. Always specify both input and output directories.
data-inline
<link rel=stylesheet href=main.css data-inline> → <style>/* inlined CSS */</style>
<script data-inline src=main.js></script> (won't inline if src is given without data-inline? Actually works.)
Works on <link> for CSS and <script> for JS. Must be used in HTML files processed by Pakku.
data-dev
<div data-dev>...content...</div> (removed in build output)
Any element with data-dev attribute is entirely stripped from the production build.

Shows basic usage: create an HTML file, run pakku to build minified output with cache-busted filenames.

mkdir -p my-project/src my-project/dist cd my-project echo '<!DOCTYPE html><html><script>alert("hello")</script></html>' > src/index.html npx pakku src/index.html dist # Output: dist/index.html (minified) and dist/script.js?<hash> (if referenced) echo "Build complete. Check dist/"
pakku --version
Debug
Known issues
breakingOutput directory is deleted and re-created on every build.
fix
Ensure output directory does not contain important files or back them up.
affects: >=0.1.0
deprecatedNode <6 no longer supported as of v1.0.0.
fix
Upgrade Node.js to version >=6.
affects: >=1.0.0
gotchaAsset versioning relies on Git commit ID; if not in a Git repo, version strings may be empty or broken.
fix
Run pakku inside a Git repository to get proper cache-busting hashes.
affects: >=0.1.0
gotchaHTML helpers like data-inline and data-dev only work on files processed by Pakku, not pre-minified or external.
fix
Ensure input HTML is the original source, not already minified.
affects: >=0.1.0
gotchaNode >=6 required; npm >=5.
fix
Verify Node.js version with 'node --version' and npm with 'npm --version'.
affects: >=1.0.0
Errors
Common errors & fixes
ENOENT: no such file or directory, open '...'
Input file path does not exist or is incorrect.
fix
Check that the path to index.html is relative to current working directory and file exists.
pakku: command not found
Pakku is not installed globally or npx is not available.
fix
Run with npx: npx pakku ... or install globally: npm install -g pakku
Cannot find module 'browserify'
Missing peer dependency (browserify) for JavaScript compilation.
fix
Install browserify: npm install browserify --save-dev
Error: EACCES: permission denied, unlink '...'
Output directory or file is not writable.
fix
Ensure the output directory is writable; try running with elevated permissions (sudo) or change directory permissions.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
pakku — npm install pakku · libregistry