Comparing version 3.5.0 to 3.6.1
{ | ||
"name": "gzipper", | ||
"version": "3.5.0", | ||
"version": "3.6.1", | ||
"description": "CLI for compressing files.", | ||
"main": "dist/index.js", | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -12,3 +12,3 @@ "test": "cross-env NODE_ENV=testing nyc --check-coverage --reporter='text-summary' mocha", | ||
"eslint": "eslint \"**/*.ts\"", | ||
"build": "rimraf dist && tsc && copyfiles package.json dist/" | ||
"build": "rimraf dist && tsc && copyfiles -f package.json README.md LICENSE dist/" | ||
}, | ||
@@ -19,3 +19,3 @@ "repository": { | ||
}, | ||
"bin": "./dist/bin/index.js", | ||
"bin": "./bin/index.js", | ||
"keywords": [ | ||
@@ -42,8 +42,8 @@ "tool", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.12.26", | ||
"@types/node": "^12.12.31", | ||
"@types/semver": "^6.2.1", | ||
"@types/sinon": "^7.5.1", | ||
"@types/uuid": "^3.4.7", | ||
"@typescript-eslint/eslint-plugin": "^2.19.0", | ||
"@typescript-eslint/parser": "^2.19.0", | ||
"@types/sinon": "^7.5.2", | ||
"@types/uuid": "^3.4.8", | ||
"@typescript-eslint/eslint-plugin": "^2.25.0", | ||
"@typescript-eslint/parser": "^2.25.0", | ||
"codecov": "^3.6.5", | ||
@@ -53,13 +53,13 @@ "copyfiles": "^2.2.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-config-prettier": "^6.10.1", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"mocha": "^6.2.2", | ||
"nyc": "^14.1.1", | ||
"mocha": "^6.2.3", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.19.1", | ||
"rimraf": "^3.0.1", | ||
"rimraf": "^3.0.2", | ||
"semver": "^6.3.0", | ||
"sinon": "^7.5.0", | ||
"source-map-support": "^0.5.16", | ||
"ts-node": "^8.6.2", | ||
"typescript": "^3.7.5" | ||
"ts-node": "^8.8.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -66,0 +66,0 @@ "engines": { |
@@ -9,3 +9,3 @@ # Gzipper | ||
There are a couple of options flags such as `gzip-level`, `gzip-strategy`, `gzip-memory-level`, `brotli-param-mode`, `brotli-quality`, `brotli-size-hint` for extending algorithm flexibility. All flags can be declared via ENV variables (ENV variables have higher priority over CLI arguments). | ||
There are a couple of options flags such as `level`, `strategy`, `memory-level`, `brotli-param-mode`, `brotli-quality`, `brotli-size-hint` for extending algorithm flexibility. All flags can be declared via ENV variables (ENV variables have higher priority over CLI arguments). | ||
@@ -94,3 +94,5 @@ You can enable `verbose` mode for better visual representation which files were compressed and how long it took. Also you can customize your file output using `output-file-format` command with predefined template `[filename]-[hash]-[filename].[ext]`. | ||
const gzipper = new Gzipper(target, outputPath, options?); | ||
await gzipper.compress(); | ||
await gzipper.compress() | ||
.then(files => console.info("Compressed files: ", files)) | ||
.catch(err => console.error(err)); | ||
``` | ||
@@ -97,0 +99,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
187
114942
25
1034
1