arikon / npm2debian

Utility to convert npm packages to Debian packages
32 stars 13 forks source link

npm2debian

npm2debian is a command line tool to convert packages from npmjs.org repository to Debian packages.

Contributions are welcome, we have some tasks to do.

Overview

npm2debian [options] <package>

Options

-h, --help                     : Help
-o OUTPUT, --output=OUTPUT     : Output directory
--versioned                    : Build versioned debian package
--no-package-prefix            : Do not add prefix to Debian package name
-m MAINTAINER,
--maintainer=MAINTAINER        : Debian package maintainer name
-e EMAIL, --email=EMAIL        : Debian package maintainer email
-p PACKAGEPREFIX,
--package-prefix=PACKAGEPREFIX : Debian package name prefix
-u DEBVERSION,
--debian-version=DEBVERSION    : Debian package version
-b DEBBUILD,
--debian-build=DEBBUILD        : Debian package build
--registry=REGISTRY            : Registry for npm install
-v, --version                  : Show version

Environment

These environmanet variables are used during the packaging:

EMAIL="email@address"
DEBFULLNAME="Maintainer Full Name"

You will need the following Debian packages for the tool to work:

sudo apt-get install devscripts dh-make

You will need the following Debian packages to build debs:

sudo apt-get install debhelper fakeroot dpkg-dev

Install

You have several options.

Usage examples