6.0.0 • Published 2 years ago

mollify v6.0.0

Weekly downloads
209
License
MIT
Repository
github
Last release
2 years 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

2 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.0.0

3 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.2

7 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.8

8 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago