# Node.js package guidelines

This document covers standards and guidelines on writing PKGBUILDs for Node.js packages.

## Package naming

Package names should start with a `nodejs-` prefix.

## Using npm

When installing with npm, add it as a build dependency:

    makedepends=('npm')

This is a minimal `package` function:

    package() {
        cd $srcdir/$pkgname-$pkgver
        npm install -g --user root --prefix "$pkgdir"/usr
    }

Category:

- Package development