Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Displays the size of a given file in your repository.
badge-size
allows you to display in real time the size of a given file which lives in your repository.
The size is always the one of your last pushed commit.
It is mainly designed for front-end library authors that want to advertise the weight of their builds to their users. But you can use it for any other purpose of course :v:.
It works like any other badge service you may know and it's configurable in the image url itself.
Here is the general pattern of a typical badge-size
url:
https://img.badgesize.io/:filepath[.svg|png|jpg][?compress=gzip][&label=string]
:filepath
It's the url of your file on github
when you browse it in the source explorer, minus blob/
part.
Here is its typical form:
:user/:repo/:branch/:path
For example if I want to point to this repository index.js
, it would be:
https://github.com/
ngryman/badge-size/master/index.js
Note that the branch name mandatory.
[.svg|png|jpg]
Optional image format. By default svg
is used.
[?compression=gzip]
Optional compression format to measure. It's useful if you want to advertise the true size your
file would take on the wire, assuming the server has gzip
compression enabled.
[&label=string]
Optional text to display in the badge instead of size / gzip size.
MIT © Nicolas Gryman
FAQs
Displays the size of a given file in your repository
The npm package badge-size receives a total of 6 weekly downloads. As such, badge-size popularity was classified as not popular.
We found that badge-size 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.