Skip to content
convert npm package to PKGBUILD
CoffeeScript JavaScript
Find file
Failed to load latest commit information.
bin
lib Add npm to dependencies. May 12, 2015
test Add mkaurball command (implements #5). Aug 5, 2014
.gitignore Add package() and fix error handling. Jan 9, 2015
LICENSE Fixed README, moved license to LICENSE, bump version. Aug 5, 2014
README.md Add mkaurball command (implements #5). Aug 5, 2014
index.js Add tests + refactor package creation Nov 11, 2011
package.json Add npm to dependencies. May 12, 2015

README.md

Npm2Arch

Convert npm packages into a PKGBUILD for Archlinux integration.

NPM package.json --> PKGBUILD for pacman

Install

From AUR :

yaourt -S nodejs-npm2arch

From sources

git clone https://github.com/Filirom1/npm2arch
cd npm2arch
[sudo] npm install -g

Usage

npm2PKGBUILD

Transform an npm package into an ArchLinux PKGBUILD

npm2PKGBUILD `npm-name` > PKGBUILD
makepkg
pacman -U nodejs-`name`-`version`-any.pkg.tar.xz

npm2aurball

Transform an npm package into an AUR tarball using mkaurball

npm2aurball `npm-name`

npm2archpkg

Transform an npm package into an ArchLinux package archive

npm2archpkg `npm-name`
pacman -U nodejs-`name`-`version`-any.pkg.tar.xz

npm2archinstall

Install an npm package with pacman

npm2archinstall `npm-name`

License

npm2arch is licensed under the MIT License.

Something went wrong with that request. Please try again.