
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Automatically updates cache.manifest version number upon files modification. Supports multiply manifest files.
When you call it first time it check mtime for each of listed files in your manifest file, and starts to watch them. After that it serve your manifest file from memory, and adjusts version number to the lastest mtime among listed files.
You can find browser-ready example in test.js
var http = require('http')
, manifesto = require('manifesto');
http.createServer(function (req, res) {
if (req.url == '/manifest.appcache')
{
manifesto.fetch('./test-manifest.appcache', '.', function(err, data) {
if (err) {
res.writeHead(404, {'Content-Type': 'text/plain'});
res.end('Something went wrong\n');
return;
}
res.writeHead(200, {'Content-Type': 'text/cache-manifest'});
res.end(data);
});
}
else
{
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello world!\n');
}
}).listen(1337, "127.0.0.1");
If you make request to manifest.appcache:
$ curl http://localhost:1337/manifest.appcache
The output will be:
CACHE MANIFEST
#v1326771360000
CACHE:
...
You should have npm
installed already.
npm install manifesto
TBW
TBW
Author: Alex Indigo
FAQs
Automatically updates cache.manifest version number
The npm package manifesto receives a total of 0 weekly downloads. As such, manifesto popularity was classified as not popular.
We found that manifesto 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.