kompresor

1.0.5 • Public • Published

Kompresor

es un CLI para facilitar la compresion del tipo ('br') tanto para archivos como para single page application facilitando la muestra de la misma mediante un servidor.

installation

npm install -g kompresor

kompresor options

C:\user> kompresor <typeAction>

<typeAction> : -C <compress> || -D <descompress> || -S <server> || --version <version>

Compresor (-C)

kompresor -C <folder to compress> -o <result of compression> -e "['.ico', '.js']"

note: -o is an argument to know that the next argument will be the output(compress) && -e is an argument to know that the next argument will be the list of exceptions files that should not be compressed

Example

kompresor -C dist\ -o dist_compress\ -e "['.ico', '.js']"

Descompressor (-D)

kompresor -D <folder to descompress> -o <result of descompression> -e "['.ico', '.js']"

note: -o is an argument to know that the next argument will be the output(descompress) && -e is an argument to know that the next argument will be the list of exceptions files that should not be descompressed

Example

kompresor -D dist_compress\ -o dist_descompress\ -e "['.ico', '.js']"

Server (-S)

kompresor -S <folder_page> <PORT> <type compress> <ENV>

type_compress : -br compress brolti ENV : --prod || --dev prod env show logs to read

Example without brotli or descompressed

kompresor -S dist\ 9000 -none < --dev || --prod >

Example with brotli

kompresor -S dist_compress\ 9000 -br < --dev || --prod >

Package Sidebar

Install

npm i kompresor

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

1.39 MB

Total Files

12

Last publish

Collaborators

  • khr1stopher