Simple NPM client for installing node_modules.
- Makes direct HTTPS calls to the NPM registry
- You don't need NPM installed
- Less logging
go get github.com/livebud/npmInstall specific packages:
npm.Install(ctx, dir, "react@18.2.0", "react-dom@18.2.0")Install from a package.json in dir:
{
"dependencies": {
"preact": "10.19.4",
"preact-render-to-string": "6.3.1",
"@lukeed/uuid": "^2.0.1"
}
}npm.Install(ctx, dir)- Matt Mueller (@mattmueller)
MIT