Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Drudge watches and serves your files while also acting as a LiveReload server
drudge - NOUN someone who has to do a lot of boring and unpleasant work
Drudge watches and serves your files while also acting as a LiveReload server.
File watching and live reloading are hard. I haven't had any luck with the existing solutions. So, I perused npm and pulled together the most popular modules for the respective jobs:
They work really well together! Yay, UNIX philosophy!
As for the livereload client, you need to install the browser extension or add the livereload script tag manually.
Drudge is a node.js program, so you want to to install that first.
npm install [-g] drudge
drudge -h
Usage: bin [options]
Options:
-h, --help output usage information
-V, --version output the version number
-d, --dir [DIRECTORY] Serve the contents of DIRECTORY (default=cwd)
-i, --index [INDEX] Use the specified INDEX filename as the result when a directory is requested. (default=index.html)
-p, --port [PORT] Listen on PORT (default=3000)
-t, --passthrough Return INDEX for missing files instead of 404.
-q, --quiet Turn off logging
The passthrough
options is especially useful when your developing a "Single Page Application" where you do all the routing on the client. The server simply returns your app instead of a 404 Not Found
.
drudge -d static -p 1337 -t
server Watching /Users/clemens/Projects/drudge/static +0ms
server LiveReload listening on http://localhost:35729 +10ms
server HTTP Server listening on http://localhost:1337 +1ms
or combine it with watchify to reload your bundled javascript:
watchify index.js -o public/bundle.js & drudge -d public
Now everytime you change a file in your project, watchify will update the bundle and drudge will subsequently trigger a reload in the browser.
var drudge = require('drudge')
Issues, requests and PRs welcome! :)
ISC
FAQs
Drudge watches and serves your files while also acting as a LiveReload server
The npm package drudge receives a total of 0 weekly downloads. As such, drudge popularity was classified as not popular.
We found that drudge 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.