Registry / devops / demin
library0.2.2jsnpmunverified

Demin is a Node.js CLI tool (v0.2.2) that performs partial de-minification of compiled AMD modules, converting require() calls to ES6 import statements, replacing expressions like !0/!1/void 0 with true/false/undefined, and optionally running Prettier. It does not guarantee identical execution semantics and is not a full decompiler. Development is sparse with few releases; use with caution for reverse-engineering legacy AMD bundles.

npm install demin
INSTALL
IMPORT
SIG · DEMIN
D
demin
devopsjavascriptv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

demin
Install globally: npm install -g demin
npm install demin (unless using via programmatic API)
Tool is intended as a CLI utility, not a library.

Shows basic CLI usage: de-minify an AMD file with --clean to remove original define wrapper.

echo 'define("m",["require","exports"],function(e,r){r.default=!0})' > file.js demin -i file.js -o output --clean
Debug
Known issues
gotchaDemin does not guarantee that output code executes identically to the source; do not expect exports to work.
fix
Use only for code review or understanding, not for production replacement.
affects: all
gotcha--prettier option is very slow with many/large output files.
fix
Omit --prettier or limit file size.
affects: all
gotchaMixing --dry and --quiet together produces no output (useless).
fix
Use --dry alone or with --verbose.
affects: all
Errors
Common errors & fixes
demin: command not found
Not installed globally or not on PATH
fix
Run 'npm install -g demin' and ensure npm global bin directory is in PATH.
Error: Cannot find module 'prettier'
Prettier dependency missing when using --prettier
fix
Install prettier globally or locally: npm install -g prettier
Upgrade
Version history
0.2.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

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