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).

37365—6.3%92JavaScript

Since Jul 21Pushed 4w ago5 watchersCompare

[ Source](https://github.com/vrana/JsShrink)[ Packagist](https://packagist.org/packages/vrana/jsshrink)[ RSS](/packages/vrana-jsshrink/feed)WikiDiscussions main Synced 2w 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

30

—

LowBetter than 61% of packages

Maintenance62

Regular maintenance activity

Popularity27

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.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 (19 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

[ipub/gravatar

Gravatar creator for Nette Framework

122.0k1](/packages/ipub-gravatar)

PHPackages © 2026

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