| PKGJS-UTILS(1p) | User Contributed Perl Documentation | PKGJS-UTILS(1p) |
pkgjs-utils - Nodejs package utilities
$ cd node-glob
$ pkgjs-utils main
# prints: glob
$ pkgjs-main
# alias for pkgjs-utils main
$ pkgjs-utils components_list
# prints:
# globalyzer
# globrex
# tiny-glob
# types-glob
$ pkgjs-utils modules_list
# prints:
# globalyzer
# globrex
# tiny-glob
# @types/glob
$ pkgjs-utils pjson .
# prints: { <package.json content, serialized> }
$ pkgjs-pjson .
# alias for pkgjs-utils pjson .
$ cd ../node-jest
$ pkgjs-pjson packages/jest-diff
# prints: { <packages/jest-diff/package.json content, serialized> }
$ pkgjs-pjson packages/jest-diff version
# prints: 27.2.5
$ pkgjs-utils pjson . scripts test
# prints: jest
$ pkgjs-utils pjson packages/jest-diff scripts test
$ pkgjs-utils ln webpack
# prints: 'webpack linked into node_modules
$ pkgjs-utils ln @types/node
# prints: '@types/node' linked into node_modules
$ pkgjs-ln @types/node
# same as pkgjs-utils ln @types/node
$ pkgjs-utils normalize_name @types/node
# prints: types-node
$ pkgjs-utils root_components_list (only components installed in nodejs dir)
$ pkgjs-utils root_modules_list (same with module names)
$ pkgjs-utils ordered_components_list (components in build order)
Collection of little commands to read <component>/package.json overridden by debian/nodejs/<component>/* files.
If "-t" option is set, try to link the corresponding typescript declarations. For example:
$ pkgjs-ln -t glob; pkgjs-ln -t abab
creates "node_modules/@types/glob" and "node_modules/abab".
$ pkgjs-pjson packages/foo scripts run
write the content of the subkey "run" of the key "scripts".
$ pkgjs-utils normalize_name @types/glob
type-glob
$ pkgjs-utils normalize_name @types/babel__type
types-babel-type
$ pkgjs-utils normalize_name require_optional
require-optional
Yadd <yadd@debian.org>
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'
| 2024-01-09 | perl v5.36.0 |