npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

debian-package-builder

v2.3.0

Published

build Debian packages (with Docker)

Downloads

42

Readme

debian-package-builder

build Node.js (and other) scripts into Debian packages (optionally using Docker for cross-compilation environment)

background

i want to port Scuttlebutt to Debian packages for Peach Cloud, to use on Intel or Arm Linux devices

example

with Docker installed:

git clone https://github.com/ahdinosaur/debian-package-builder
cd debian-package-builder
npm run example:hello-node:amd64
sudo dpkg -i output/hello-node/hello-node.0.0_amd64.deb

# or to cross-compile for armhf
npm run example:hello-node:armhf

# or to cross-compile for arm64
npm run example:hello-node:arm64

see more example inputs in ./examples

install

npm install -g debian-package-builder

usage

Usage:
  debian-package-builder [options]

  Arguments:

    -t, --target <target>: (required) target of build (nodejs)
    -i, --input <path>: (required) directory of input image spec
    -o, --output <path>: (required) directory to output build results
    -a, --arch <arch>: (required) architecture
    -n, --name <name>: optional name of image

  Flags:

    -h, --help: show this usage
    -d, --docker: build image using docker

  Docker-only arguments:

    --debian-release <release>: optional Debian release (default: buster) 
    --target-version <version>: optional target version
      - default Node.js version: 10
    --apt-proxy <address>: optional apt proxy

  Examples:

    debian-package-builder --docker --target nodejs --input ./examples/hello-world --output ./output --arch amd64

if using --docker, you need Docker installed.

if not using --docker, you need the following packages installed:

  • git
  • curl
  • gnupg
  • libc6-dev
  • build-essential
  • libtool
  • debhelper
  • devscripts

if intended target is nodejs, you also need:

references

  • https://blog.cloudflare.com/porting-our-software-to-arm64/
  • https://www.ecliptik.com/Cross-Building-and-Running-Multi-Arch-Docker-Images/
  • https://askubuntu.com/questions/850568/how-do-i-represent-arch-pc-linux-gnu-in-a-debian-install-file
  • https://packages.debian.org/sid/qemu-user-static
  • https://www.debian.org/doc/manuals/maint-guide/start.en.html
  • https://www.debian.org/doc/debian-policy/index.html#
  • https://github.com/mafintosh/raspberry-pi-container

license

GPL-3.0