Comparing version 0.3.4 to 0.3.5
{ | ||
"name": "pg-minify", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Minifies PostgreSQL scripts.", | ||
@@ -12,3 +12,4 @@ "main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"typescript" | ||
], | ||
@@ -15,0 +16,0 @@ "homepage": "https://github.com/vitaly-t/pg-minify", |
@@ -8,12 +8,12 @@ pg-minify | ||
Minifies a PostgreSQL script into a single line: | ||
Features: | ||
1. Removes both `/*multi-line*/` and `--single-line` comments | ||
2. Concatenates multi-line strings into a single line with `\n` | ||
3. Removes redundant line gaps: line breaks, tabs and spaces | ||
4. Flattens the resulting script into a single line | ||
5. Optionally, compresses SQL for minimum space | ||
* Removes both `/*multi-line*/` and `--single-line` comments | ||
* Concatenates multi-line strings into a single line with `\n` | ||
* Fixes multi-line text, prefixing it with `E` where needed | ||
* Removes redundant line gaps: line breaks, tabs and spaces | ||
* Provides basic parsing and error reporting for invalid SQL | ||
* Flattens the resulting script into a single line | ||
* Optionally, compresses SQL for minimum space | ||
It also provides basic parsing and error reporting for invalid SQL. | ||
## Installing | ||
@@ -48,3 +48,3 @@ | ||
With compression: | ||
with compression: | ||
@@ -51,0 +51,0 @@ ```js |
13593
7
285