← All work

lnpm

CLI · Go
11.8×
lnpm add · 33.9 ms
yalc add · 398.5 ms
Intel N150 · 101 files10 runs

lnpm is one Go binary for the loop where you edit a library and check it against an app that uses it. lnpm publish files a copy of the package in a store on your machine. lnpm add puts that copy into the app as real files, not a symlink, so the app resolves it the way it will resolve the package from npm. lnpm push updates every linked app.

It works with npm, yarn, pnpm and bun on Linux, macOS and Windows. If you use yalc, it is the same workflow with a store you can list, tag and roll back, and it is faster because no Node process runs. The benchmark script is in the repo, so you can check the numbers on your own machine.

Install it with brew install pedrosousa13/tap/lnpm.

Recording · Publishing a library, adding it to an app, then pushing a change