Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
minify-dir
Advanced tools
Readme
Minify all the files under a directory.
$ npm install -g minify-dir
usage : minify-dir I_FOLDER [output O_FOLDER]
Minify-Dir : Minify all the files under a directory.
positional arguments:
I_FOLDER Directory you want to minified.
optional arguments:
O_FOLDER Output all the minified files here.
Try minify a directory
.
# Default Output => `website.min`
$ minify-dir ./website
# Target Output => `website2`
$ minify-dir ./website ./website2
Or you can minify file
instead of a directory
.
# Default Output => `website.min/anyfile.html`
$ minify-dir ./website/anyfile.html
# Target Output => `website2/anyfile.html`
$ minify-dir ./website/anyfile.html ./website2/anyfile.html
Include minify-dir
package in your code.
const minifyDir = require('minify-dir');
Minify all files under website
directory recursively,
defualt will output to website.min
directory.
minifyDir.minifyDirectory([source], [option destination]);
/* Default Output => `website.min` */
minifyDir.minifyDirectory("./website");
/* Target Output => `website2` */
minifyDir.minifyDirectory("./website", "./website2");
Minify a CSS/HTML/JS file, default will output
to website.min/anyfile.html
.
minifyDir.minifyFile([source], [option destination]);
/* Default Output => `website.min/anyfile.html` */
minifyDir.minifyFile("./website/anyfile.html");
/* Target Output => `website2/anyfile.html` */
minifyDir.minifyFile("./website/anyfile.html", "./website2/anyfile.html");
FAQs
Minify all the files under a directory.
The npm package minify-dir receives a total of 2 weekly downloads. As such, minify-dir popularity was classified as not popular.
We found that minify-dir demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.