Gathering detailed insights and metrics for npm-pkgbuild
Gathering detailed insights and metrics for npm-pkgbuild
Gathering detailed insights and metrics for npm-pkgbuild
Gathering detailed insights and metrics for npm-pkgbuild
npm install npm-pkgbuild
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
0BSD License
10 Stars
3,760 Commits
4 Forks
3 Watchers
3 Branches
3 Contributors
Updated on Jul 10, 2025
Latest Version
18.2.12
Package Id
npm-pkgbuild@18.2.12
Unpacked Size
131.94 kB
Size
30.82 kB
File Count
43
NPM Version
10.9.2
Node Version
24.2.0
Published on
Jun 23, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
19
Create ArchLinux, RPM, Debian and Docker packages from npm packages.
In a package directory execute
1npm-pkgbuild --rpm --debian --arch --content /destination:build --publish /some/directory
This will create a arch, rpm and a debian package of the build dir.
1npm-pkgbuild --arch --content build --publish 'https://my.package-service.com/binaries/linux/{{type}}/{{access}}/{{arch}}'
You can specify the package content in package.json.
1{ 2 "pkgbuild": { 3 "content": { 4 "/some/location/" : { "base": "build" }, 5 "/etc/myconfig.json" : "sample-config.json", 6 "/erc/secret" : { "name": "secret", "mode": "600" }, 7 "/opt/myapp": [ 8 { 9 "type": "npm-pack" 10 }, 11 { 12 "type": "node-modules", 13 "withoutDevelpmentDependencies": true 14 } 15 ] 16 }, 17 "hooks" : "pkg/hooks", 18 "output": { 19 "debian" : {}, 20 "rpm" : {}, 21 "arch" : {} 22 }, 23 "dependencies": { "nginx" : ">=1.12" } 24 } 25}
Defining where the package content should come from.
content from the file system
content as provided by npm pack
content of all (production) dependencies
options: - withoutDevelpmentDependencies when to stip away dev dependencies (defaults to true)
You can import common configuration from other packages. See mf-hosting or mf-hosting-frontend modules.
All content providers (input)
All output formats
Node architecture name to os native arch name mapping {@see https://nodejs.org/dist/latest-v18.x/docs/api/process.html#processargv}
Delivers ContentProviders from pkgbuild.content definition.
content
Object from pkgbuild.contentdir
Returns Iterable<ContentProvider>
Type: Object
properties
Object values describing the package attributes
properties.dependencies
Object sources
Array<ContentProvider> content providers
output
Object package type
variant
Object identifier of the variant
Extract package definition from package.json.
Returns AsyncIterable<PackageDefinition>
Extends ContentProvider
Content from npm pack.
dir
string Returns string name of the content provider
Extends ContentProvider
Content from node_modules. Requires .npmrc or NPM_TOKEN environment
definitions
entryProperties
directoryProperties
withoutDevelpmentDependencies
boolean List all entries.
Returns AsyncIterable<(ContentEntry | CollectionEntry)> all entries
Returns string name of the content provider
Extends ContentProvider
Content provided form the file system.
entryProperties
directoryProperties
Returns AsyncIterable<(ContentEntry | CollectionEntry)> all entries
Returns string name of the content provider
Extends ContentProvider
Content provided form the file system.
entryProperties
directoryProperties
Returns AsyncIterable<ContentEntry> all entries
Returns string name of the content provider
Source of package content.
definitions
entryProperties
directoryProperties
List all entries.
Returns AsyncIterable<(ContentEntry | CollectionEntry)> all entries
Extends Packager
Create .deb packages
Map install hook named from default (arch) to deb.
well known package properties https://www.archlinux.org/pacman/PKGBUILD.5.html
Type: Object
name
Extends Packager
Produce rpm packages.
Map install hook named from default (arch) to rpm.
Check for rpmbuild presence.
Returns Promise<boolean> true when rpmbuild executable is present
Extends Packager
Low level OCI compatible packager
Extends Packager
docker image build
Check for docker presence.
Returns Promise<boolean> true when docker executable is present
Extends DOCKER
Use buildah @see https://buildah.io
properties
What is the package name in the package eco-system.
name
string Returns string package name in the target eco-system
Create tmp directory.
Returns Promise<string> directory path
Prepares artifact generation.
Returns Promise<{properties: Object, destination: string, tmpdir: string, staging: string}>
Execute package generation.
sources
Object transformer
Array<Object> publishingDetails
Array<PublishingDetail> options
Object expander
function (string): string? Returns Promise<string> identifier of the resulting package
Returns {named: object, others: Array<string>}
Base Packager
properties
Object What is the package name in the package eco-system.
name
string Returns string package name in the target eco-system
Create tmp directory.
Returns Promise<string> directory path
Prepares artifact generation.
Returns Promise<{properties: Object, destination: string, tmpdir: string, staging: string}>
Execute package generation.
sources
Object transformer
Array<Object> publishingDetails
Array<PublishingDetail> options
Object expander
function (string): string? Returns Promise<string> identifier of the resulting package
Returns {named: object, others: Array<string>}
Type: Object
Type: Object
properties
Object?
Returns Array<PublishingDetail>
artifactIdentifier
string publishingDetail
PublishingDetail? properties
Object? logger
function (any): void (optional, default console.log
)Type: BufferEncoding
Decode a password
password
string Returns string plaintext password
Type: Object
Extract shell functions from a given text.
source
AsyncIterable<string> Returns AsyncIterable<FunctionDecl>
Returns Function
Type: Function
path
string Returns string
Copy content from source into destinationDirectory. Destination paths a generated without leading '/' (as for entry names too).
source
AsyncIterable<ContentEntry> destinationDirectory
string expander
Expander (optional, default v=>v
)With npm do:
1npm install npm-pkgbuild
BSD-2-Clause
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More