Debian...geLock(3pm)
π Debian::PkgJS::PackageLock(3pm) π
okay bestie come sit with me, we're reading the Debian::PkgJS::PackageLock page together. (The header up top squishes it down to Debian...geLock(3pm) like it's texting with its thumbs, but it's the same girl, promise. π«Ά)
β¨ NAME β¨
Debian::PkgJS::PackageLock β it's a Perl module, and its whole job, its entire purpose, its main character era, is building pkgjs-lock.json files. That's it. That's the gig. π
πΈ SYNOPSIS πΈ
here's the vibe in code, no cap:
use Debian::PkgJS::PackageLock;
for my $path (@jsModulePaths) {
buildPackageLock( $path, "$path/pkgjs-locj.json");
}
use Debian::Debhelper::Dh_Lib;
addsubstvar( $pkg, builtUsing() );
likeβ¦ literally just use it, loop over your @jsModulePaths, and call buildPackageLock on each one. then pull in Debian::Debhelper::Dh_Lib and hit addsubstvar( $pkg, builtUsing() ). iconic behavior. β¨
π¦ DESCRIPTION π¦
π EXPORT π
these are the two things it hands out to you, the exports, the lil gifts π:
buildPackageLock( $path, $dest )β takes your$pathand your$dest, and does the building thing.builtUsing()β no args, it just tells you what you built with.
π COPYRIGHT AND LICENSE π
Copyright Yadd <yadd@debian.org>
This library 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.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
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. If not, see <http://www.gnu.org/licenses/>.
bestie that "WITHOUT ANY WARRANTY" bit is doing a lot of heavy lifting, do not skip it, it's fr fr the whole point π
that's the whole page!! ty for coming to my ted talk, this was perl v5.40.1, dated 2026-08-17, and you read it in the Debian...geLock(3pm) manual section. slay, go build your lockfiles, mwah ππβ¨
π¦ where this page comes from
- ubuntu stonking: dh-nodejs 0.17.8 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms