PHPackages                             vrana/jsshrink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vrana/jsshrink

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vrana/jsshrink
==============

Remove spaces and comments from JavaScript code (available in PHP and JavaScript).

37359—0%92JavaScript

Since Mar 19Pushed 1y ago5 watchersCompare

[ Source](https://github.com/vrana/JsShrink)[ Packagist](https://packagist.org/packages/vrana/jsshrink)[ RSS](/packages/vrana-jsshrink/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (2)

```
JsShrink - Remove spaces and comments from JavaScript code
Available in PHP and JavaScript
Requires statements ending by semicolon, use JSHint or JSLint to verify.

https://vrana.github.io/JsShrink/

Usage PHP:

Usage JavaScript:

textarea.value = jsShrink(code);

Note:
Google Closure Compiler is much more powerful and efficient tool.
JsShrink was created for those looking for PHP or JavaScript only solution.
Most other JS minifiers are not able to process valid JavaScript code:
http://php.vrana.cz/minifikace-javascriptu.php#srovnani
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/117453?v=4)[Jakub Vrána](/maintainers/vrana)[@vrana](https://github.com/vrana)

---

Top Contributors

[![vrana](https://avatars.githubusercontent.com/u/117453?v=4)](https://github.com/vrana "vrana (14 commits)")[![frankshrestha](https://avatars.githubusercontent.com/u/99945684?v=4)](https://github.com/frankshrestha "frankshrestha (1 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (1 commits)")

### Embed Badge

![Health badge](/badges/vrana-jsshrink/health.svg)

```
[![Health](https://phpackages.com/badges/vrana-jsshrink/health.svg)](https://phpackages.com/packages/vrana-jsshrink)
```

###  Alternatives

[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.8k8](/packages/plasticbrain-php-flash-messages)[alkoumi/laravel-arabic-numbers

Laravel package to handel ANY thing 🥳 about our Amazing 💝 Arabic Numbers Functions { كل ما يهم محبي لارافيل واستخدام الأرقام العربية مثل تفقيط الأرقام والمبالغ المالية والعكس و عرض الأرقام بالعربية والعكس }

7327.1k](/packages/alkoumi-laravel-arabic-numbers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
