
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
A quick and dirty (for now) script that gets git to behave a little more like NPM at times when we'd like it to. publish
is the only command that currently works. Like so:
git-as-npm publish
NPM is great for managing JS modules. However, private modules aren't free, and maintaining your own registry isn't, either. Thankfully, you can install NPM dependencies directly from Git, like so:
"blah-lib": "git+ssh://git@github.com/blah/blah-lib.git"
You can also install specific tags or commits, by appending #
on the end, like so:
git+ssh://git@github.com/blah/blah-lib.git#0.0.3
But the process by which you tag these releases is entirely manual.
So what does this script do?
release
(or creates it if it doesn't exist).release
.release
branch, to sync up which version numbers have already been released.npm prepublish
, if that script exists.package.json
version number, throwing an error if that release already exists.repository
field of package.jsonIt doesn't handle everything - you still need to specify the version when doing an npm install
and so on, but hopefully it makes things a little easier.
FAQs
git-as-npm ===
The npm package git-as-npm receives a total of 0 weekly downloads. As such, git-as-npm popularity was classified as not popular.
We found that git-as-npm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.