6.0.0 • Published 10 months ago

mollify v6.0.0

Weekly downloads
209
License
MIT
Repository
github
Last release
10 months ago

Mollify License Build Status NPM version

Middleware for minify.

Install

npm i mollify --save

How to use?

import {fileURLToPath} from 'url';
import {dirname} from 'path';
import http from 'http';
import mollify from 'mollify';
import express from 'express';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const app = express();
const server = http.createServer(app);

const port = 1337;
const ip = '0.0.0.0';

app.use(mollify({
    dir: __dirname,
    is: true, // default
}));

app.use(express.static(__dirname));

server.listen(port, ip);

License

MIT

6.0.0

10 months ago

5.0.1

2 years ago

5.0.0

2 years ago

4.0.0

2 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.2

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.8

7 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago