PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.12.1
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.12.1
5.12.1 5.12.0 5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / vendor / tedivm / jshrink / README.md
matomo / app / vendor / tedivm / jshrink Last commit date
src 8 months ago LICENSE 5 years ago README.md 1 year ago
README.md
73 lines
1 # JShrink [](https://github.com/tedious/JShrink/actions/workflows/pr_tests.yml![Build Status](https://img.shields.io/github/actions/workflow/status/tedious/jshrink/pr_tests.yml?branch=master)](https://github.com/tedious/JShrink/actions/workflows/pr_tests.yml](https://github.com/tedious/JShrink/actions/workflows/pr_tests.yml)
2
3 [](https://github.com/tedivm/JShrink/blob/master/LICENSE![License](http://img.shields.io/packagist/l/tedivm/JShrink.svg)](https://github.com/tedivm/JShrink/blob/master/LICENSE](https://github.com/tedivm/JShrink/blob/master/LICENSE)
4 [](https://packagist.org/packages/tedivm/JShrink![Latest Stable Version](http://img.shields.io/github/release/tedious/JShrink.svg)](https://packagist.org/packages/tedivm/JShrink](https://packagist.org/packages/tedivm/JShrink)
5 [](https://coveralls.io/r/tedivm/JShrink?branch=master![Coverage Status](https://coveralls.io/repos/tedious/JShrink/badge.png?branch=master)](https://coveralls.io/r/tedivm/JShrink?branch=master](https://coveralls.io/r/tedivm/JShrink?branch=master)
6 [](https://packagist.org/packages/tedivm/JShrink![Total Downloads](http://img.shields.io/packagist/dt/tedivm/jshrink.svg)](https://packagist.org/packages/tedivm/JShrink](https://packagist.org/packages/tedivm/JShrink)
7
8 JShrink is a php class that minifies javascript so that it can be delivered to the client quicker. This code can be used
9 by any product looking to minify their javascript on the fly (although caching the results is suggested for performance
10 reasons). Unlike many other products this is not a port into php but a native application, resulting in better
11 performance.
12
13
14 ## Usage
15
16 Minifying your code is simple call to a static function-
17
18 ```php
19 <?php
20 include('vendor/autoload.php');
21
22 // Basic (default) usage.
23 $minifiedCode = \JShrink\Minifier::minify($js);
24
25 // Disable YUI style comment preservation.
26 $minifiedCode = \JShrink\Minifier::minify($js, array('flaggedComments' => false));
27 ```
28
29
30 ## Results
31
32 * Raw - 586,990
33 * Gzip - 151,301
34 * JShrink - 371,982
35 * JShrink and Gzip - 93,507
36
37
38 ## Installing
39
40 ### Composer
41
42 Installing JShrink can be done through a variety of methods, although Composer is
43 recommended.
44
45 ```yaml
46 "require": {
47 "tedivm/jshrink": "~1.0"
48 }
49 ```
50
51 ### Github
52
53 Releases of JShrink are available on [](https://github.com/tedious/JShrink/releasesGithub](https://github.com/tedious/JShrink/releases](https://github.com/tedious/JShrink/releases).
54
55
56 ## License
57
58 JShrink is licensed under the BSD License. See the LICENSE file for details.
59
60 In the spirit of open source, use of this library for evil is discouraged but not prohibited.
61
62
63 ## Reporting Security and Vulnerability Issues
64
65 This project utilizes the [](https://tidelift.com/securityTidelift Security Reporting System](https://tidelift.com/security](https://tidelift.com/security) for security and vulnerability reporting.
66
67
68 ## Support
69
70 Issues can be opened directly in Github for issues that aren't related to security.
71
72 [](https://tidelift.com/subscription/pkg/packagist-tedivm-jshrink?utm_source=packagist-tedivm-jshrink&utm_medium=referral&utm_campaign=readmeProfessionally supported JShrink is now available with Tidelift.](https://tidelift.com/subscription/pkg/packagist-tedivm-jshrink?utm_source=packagist-tedivm-jshrink&utm_medium=referral&utm_campaign=readme](https://tidelift.com/subscription/pkg/packagist-tedivm-jshrink?utm_source=packagist-tedivm-jshrink&utm_medium=referral&utm_campaign=readme)
73