Guidance on creating a port for an npm installed tool

From: Patrick M. Hausen <>
Date: Fri, 09 Jun 2023 18:11:57 UTC
Hi all,

is there some general guide on how to go about creating a port
for anything implemented in node.js and using npm to download
all sorts of dependencies at build/install time?

I'd like to see a port of this:

Similarly a port of mineos would be awesome.

Cloning from Github and running npm works and delivers a
functional installation in ${WRKSRC} ...

What now?

I did not find any detailled help in the handbook or by searching.
There seems to be a general method if all modules are available
in npm (they have a repository it seems).

But what with products like these?

For Go applications there are very convenient tools to get
all the dependencies into the port Makefile and do it in a clean way.

Section 6.5.8 here:

So any help with porting these would be greatly appreciated.

Kind regards,
-- GmbH
Patrick M. Hausen

Sophienstr. 187
76185 Karlsruhe

Tel. +49 721 9109500

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein