---
name: "pkgjs"
section: "1p"
platform: "linux"
package: "dh-nodejs"
version: "0.15.23"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pkgjs"
---

# pkgjs(1p)

Wrapper to pkgjs-\* commands, used to replace yarn during Debian packages build.

## NAME

pkgjs - Wrapper to pkgjs-\* commands, used to replace yarn during Debian packages build.

## DESCRIPTION

pkgjs is a wrapper to pkgjs-\* commands. For example `"pkgjs ln yargs"` launches `"pkgjs-ln yargs"`. For some commands, it launches [**yarnpkg**(1)](/yarnpkg/1.md) or [**npm**(1)](/npm/1.md) if available.

- •

  Ignored commands *(do nothing)*: **cache**, **config**, **dedupe**

- •

  Commands passed to yarnpkg/npm: **explain**, **info**, **init**

- •

  Direct mappings *(launches the corresponding "pkgjs-\*" command)*: depends, easy-to-update, install-minimal, lerna, ln, ls, main, pjson, run, utils

- •

  More complex mappings:

  - •

    **bin**: launches [**which**(1)](/which/1.md)

  - •

    **exec**: launches [**nodejs**(1)](/nodejs/1.md)

  - •

    **install**:

    - •

      if `"PKGJS_INSTALL_OPTS"` environment variable is set, launches [**pkgjs-install**(1)](/pkgjs-install/1.md) with `"PKGJS_INSTALL_OPTS"` and given arguments

    - •

      else launches [**pkgjs-install-minimal**(1)](/pkgjs-install-minimal/1.md)

All other commands will fail.

## AUTHOR

Yadd \<yadd@debian.org\>

## COPYRIGHT AND LICENSE

Copyright (C) 2021 by Yadd \<yadd@debian.org\>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in \`/usr/share/common-licenses/GPL-2'
