Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
npm install abridge
Abridge is a streaming compiler for CSS & JavaScript. It is a superset of ycssmin and uglify-js, with a streamable interface on top.
var abridge = require('abridge');
/* abridge.{Minifier, createStream, minify} */
Piping output
Pipe #minify output to any writable stream.
abridge.minify('path/to/my/file.js').pipe(process.stdout);
You may use either a String or an instance of fs.ReadStream as a first argument.
var inputStream = require('fs').createReadStream('path/to/my/file.css');
abridge.minify(inputStream).pipe(process.stdout);
Using callback
Throw in a callback if you desire.
abridge.minify('file.js', function(err, data) {
});
minify is createStream
abridge.createStream('file.css').pipe(process.stdout);
Minify multiple files at once
abridge.minify(['file1.js', 'file2.js']).pipe(process.stdout);
Serve minified scripts and styles
Abridge can be integrated into a web server for quickly minifying scripts & styles.
var http = require('http');
var server = http.createServer(function(req, res) {
abridge.createStream(req.url.slice(1)).pipe(res);
});
server.listen(8080);
For a complete file server solution that uses Abridge minification as well as automatic gzipping, see Lactate
##License
MIT
FAQs
Streaming minifier for JS and CSS
The npm package abridge receives a total of 78 weekly downloads. As such, abridge popularity was classified as not popular.
We found that abridge 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.