any-node
Summary
Section titled “Summary”A parametric package that installs any npm module and exposes its binaries as sbin shims, keeping the install isolated under zinit’s data directory.
Syntax / Usage
Section titled “Syntax / Usage”zi pack param'MOD -> <module-name>' for any-nodeUp to seven modules can be passed via MOD, MOD2, … MOD7, plus OTHER for additional modules without a shim.
Details
Section titled “Details”- Provides:
sbinshims for all executables undernode_modules/.bin/, vian:node_modules/.bin/*glob. - Profile ices:
git,as"null",nocompile,lucid,id-as"${${:-%IDAS%}:-%MOD%}",node"%MOD%;%MOD2%;...;%OTHER%",sbin"n:node_modules/.bin/*",atpull"%atclone". - The
nodeice (from thebin-gem-nodeannex) runsnpm installinto an isolated directory; no globalnode_modulesis touched. - Default
param-defaultisMOD -> lolcatjs, so without aparamicelolcatjsis installed. - Requires the
bin-gem-nodeannex andnpmin PATH.
Examples
Section titled “Examples”# Install prettierzi pack param'MOD -> prettier' for any-node
# Install eslint and typescript togetherzi pack param'MOD -> eslint MOD2 -> typescript' for any-nodeCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- Requires the
bin-gem-nodeannex andnpm(Node.js) to be available. - Use
IDASto set a customid-aswhen installing multiple different packages to avoid ID collisions.
See Also
Section titled “See Also”- pkg-any-gem — same pattern for Ruby gems
- pkg-doctoc — dedicated doctoc package using the node ice
- pkg-remark — dedicated remark package using the node ice
- pkg-overview — how
zi packworks