Skip to content

livebud/npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, "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)

Contributors

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published