0.0.3 • Published 10 years ago

static-gz v0.0.3

Weekly downloads
18
License
None
Repository
github
Last release
10 years ago

static-gz

nodejs express plugin to view gz file in browser directly. Help to save server disk space

use case

When I host a website providing static files, eg: doc or log files  
And I use "gzip" to compress static files to save disk space  
Then user still can view those files directly in browser as if they are not compressed

how to install

npm install static-gz

how to use

var staticGz = require("static-gz");
app.use(staticGz.compressed());
app.use(express.static(path.join(__dirname, 'public')));
0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago