mollify

6.0.0 • Public • Published

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

/mollify/

    Package Sidebar

    Install

    npm i mollify

    Weekly Downloads

    65

    Version

    6.0.0

    License

    MIT

    Unpacked Size

    5.75 kB

    Total Files

    5

    Last publish

    Collaborators

    • coderaiser