Package Exports
- minify
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (minify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Minify

Minify - a minifier of js, css, html and img files.
To use minify
as middleware try Mollify.
Install
npm i minify
How to use?
minify
can be used as a promise
:
const minify = require('minify');
minify('./client.js')
.then(console.log)
.catch(console.error);
Or with async-await
and try-to-catch:
const minify = require('minify');
const tryToCatch = require('try-to-catch');
async () => {
const [error, data] = await tryToCatch(minify, './client.js');
if (error)
return console.error(error.message);
console.log(data);
}();
License
MIT