Skip to content

Commit

Permalink
add more manual testing URLs to the README (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
mreishus authored Jan 6, 2025
1 parent 3e4cfe4 commit 3cf7324
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,39 @@ readme](https://www.npmjs.com/package/generic-pool).

Do `npm test`.

## Manual Testing

After starting the server with `npm start` or `node server.js`, you can test different functionalities using these example URLs:

### CSS Minification and Compression
```
# Basic CSS minification
http://localhost:4747/get?url=https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.css
# CSS with Gzip compression
http://localhost:4747/get?with=gzip&level=9&url=https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.css
# CSS with Brotli compression
http://localhost:4747/get?with=br&level=11&url=https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.css
```

### JavaScript Minification
```
# Basic JS minification
http://localhost:4747/get?url=https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.js
# JS with minification disabled
http://localhost:4747/get?minify=false&url=https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.js
```

### Other File Types
```
# HTML minification
http://localhost:4747/get?url=https://raw.githubusercontent.com/h5bp/html5-boilerplate/refs/heads/main/dist/index.html
# SVG minification
http://localhost:4747/get?url=https://raw.githubusercontent.com/simple-icons/simple-icons/develop/icons/javascript.svg
```
## Examples

The `tests/*.js` files are good reference for examples.
Expand Down

0 comments on commit 3cf7324

Please sign in to comment.