
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
The JSR npm CLI integrates JSR (JavaScript Registry) packages with npm-based projects, facilitating the use of JSR packages in environments that traditionally rely on npm. Learn more about JSR at jsr.io.
Add a JSR package to your project:
npx jsr add @package/name # 'install' and 'i' are also supported
This command auto-updates your package.json
and installs the package,
automatically detecting and using your project's package manager.
The CLI creates or updates a .npmrc
file in your project with:
@jsr:registry=https://npm.jsr.io
This line redirects npm to fetch JSR packages from the JSR registry instead of the default npm registry.
Packages are added to package.json
with an alias, mapping the JSR package name
to the npm registry URL hosted by JSR, like so:
{
"dependencies": {
"@luca/flag": "npm:@jsr/luca__flag@1"
}
}
This ensures that the package is fetched from JSR when you run npm install commands.
add
, install
, i
: Adds a JSR package to your project.remove
, uninstall
, r
: Remove a JSR package from your project.publish
: Publish package.json
libraries to JSR.run <script>
: Run a JSR package script.<script>
: Run a JSR package script without run
command.jsr:
import specifiers are not supported.For the best developer experience and to fully leverage JSR's capabilities, consider environments with native JSR support like Deno.
We welcome contributions and feedback. Visit our GitHub repository to contribute or report issues.
This CLI is available under the MIT License.
FAQs
jsr.io package manager for npm, yarn, pnpm and bun
The npm package jsr receives a total of 5,579 weekly downloads. As such, jsr popularity was classified as popular.
We found that jsr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.