Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 749 Bytes

Readme.md

File metadata and controls

49 lines (33 loc) · 749 Bytes

NPM

Go Reference

Simple NPM client for installing node_modules.

Features

  • Makes direct HTTPS calls to the NPM registry
  • You don't need NPM installed
  • Less logging

Install

go get github.com/livebud/npm

Example

Install specific packages:

npm.Install(ctx, dir, "[email protected]", "[email protected]")

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)

Contributors

License

MIT