All Projects β†’ ngryman β†’ Badge Size

ngryman / Badge Size

🍻 Displays the size of a given file in your repository.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Badge Size

Gulp Size
Display the size of your project
Stars: ✭ 225 (-18.77%)
Mutual labels:  size, gzip
Leanify
lightweight lossless file minifier/optimizer
Stars: ✭ 694 (+150.54%)
Mutual labels:  minify, gzip
Minification Benchmarks
πŸƒβ€β™‚οΈπŸƒβ€β™€οΈπŸƒ JS minification benchmarks: babel-minify, esbuild, terser, uglify-js, swc, google closure compiler
Stars: ✭ 271 (-2.17%)
Mutual labels:  size, gzip
GetSTFolderSize
Get folder sizes blazingly fast with PowerShell
Stars: ✭ 41 (-85.2%)
Mutual labels:  size
kirby-blade
Enable Laravel Blade Template Engine for Kirby 3
Stars: ✭ 20 (-92.78%)
Mutual labels:  minify
elm-webpack-starter
Elm 0.19 webpack 4 starter template to build SPA
Stars: ✭ 109 (-60.65%)
Mutual labels:  gzip
Compressing
Everything you need for compressing and uncompressing
Stars: ✭ 268 (-3.25%)
Mutual labels:  gzip
phaser-typescript-webpack
Another Phaser CE boilerplate using TypeScript and Webpack.
Stars: ✭ 17 (-93.86%)
Mutual labels:  minify
lambda-smush-py
Gain additional code space via cheeky compression for Python AWS Lambda functions defined in-line to CloudFormation templates.
Stars: ✭ 17 (-93.86%)
Mutual labels:  gzip
EasyCompressor
⚑ A compression library that implements many compression algorithms such as LZ4, Zstd, LZMA, Snappy, Brotli, GZip, and Deflate. It helps you to improve performance by reducing Memory Usage and Network Traffic for caching.
Stars: ✭ 167 (-39.71%)
Mutual labels:  gzip
badgemaker
The Nim badgemaker tool.
Stars: ✭ 15 (-94.58%)
Mutual labels:  badge
parallel-disk-usage
Highly parallelized, blazing fast directory tree analyzer
Stars: ✭ 145 (-47.65%)
Mutual labels:  size
ETBadge
A tool of swift to add or clear badge for any UIView。You can use it easily, also can custom it.
Stars: ✭ 19 (-93.14%)
Mutual labels:  badge
HumanBytes
A library to convert byte sizes to a human readable form
Stars: ✭ 28 (-89.89%)
Mutual labels:  size
made-with-love-in
πŸ› οΈ ❀️ πŸ—ΊοΈ πŸ›‘οΈ β€” Mircoservice for serving and listing "Made with love in <country-name>" badges
Stars: ✭ 21 (-92.42%)
Mutual labels:  badge
Expo-Badge
A design study for Expo badges
Stars: ✭ 22 (-92.06%)
Mutual labels:  badge
action
πŸ“¦πŸ“Š GitHub Action to reports on the size of your npm package
Stars: ✭ 36 (-87%)
Mutual labels:  size
Yeebadge
badgeView for UIView Inspired by WZLBadge,using UIImage to avoid off-screen rendering
Stars: ✭ 33 (-88.09%)
Mutual labels:  badge
build-size-watcher
Keep your bundle size in check and detect when it gets too big.
Stars: ✭ 16 (-94.22%)
Mutual labels:  size
SuperBadge
πŸš€ πŸ“› SuperBadge Android Library πŸ”₯
Stars: ✭ 34 (-87.73%)
Mutual labels:  badge

badge-size npm travis

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 ✌️.

Examples

Badge URL
Normal size
Gzipped size
Brotli size
Custom label
PNG format

Usage

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][?compression=gzip|brotli][&label=string][&max=string][&softmax=string]

:filepath

Relative URL of file on GitHub of any absolute URL if hosted elsewhere.

The format of the GitHub URL is the same as 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 is mandatory.

[.svg|png|json]

Optional image format. By default svg is used.

When json is used, the response is a JSON object of the following shape:

{
  "color": "44cc11",
  "originalSize": 997,
  "prettySize": "997 B",
  "size": 997
}

[?compression=gzip|brotli]

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 or brotli compression enabled.

[&label=string]

Optional text to display in the badge instead of size / gzip size / brotli size.

[&color=string]

Optional background color. By default it's brightgreen.
You can specify hexadecimal colors, without the dash (i.e bada55) or one of the following named colors:

[&style=string]

Optional style. By default it's flat.
You can specify one of the following:

[&max=string] [&softmax=string]

Optional size limits in bytes.
Max is a hard limit. Exceeding this will generate a red badge.
If softlimit is provided (in addition to max) and the file size falls within the range of max and softmax, a yellow badge will be generated.
This setting will override the color option in the above two scenarios.

https://img.badgesize.io/:filepath?max=100000&softmax=200000

Contributors

Generated with contributors-faces.

Other projects

  • Fauda: configuration made simple.
  • Reading Time: Medium's like reading time estimation.
  • Commitizen Emoji: Commitizen adapter formatting commit messages using emojis.

License

MIT Β© Nicolas Gryman

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].