
Security News
Federal Audit Finds NIST Wasted Funds With No Plan to Clear NVD Backlog
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.
The stupid development server. Serves CoffeeScript, EJS, and Stylus like a champ. Reloads browser on source-file change.
The stupid development server. Fork of workit
Built with Connect, Socket.io, Commander.js, and watchr. Inspired by visionmedia's serve and nodejitsu's http-server.
Via npm:
$ npm install -g servit
Usage: servit [options] [dir]
Options:
-h, --help output usage information
-V, --version output the version number
-a, --address <string> set hostname [127.0.0.1]
-f, --format <string> connect logger format [dev]
-p, --port <number> set port number [3000]
Examples:
Serve the current directory
$ cd /var/www
$ servit
Serving /var/www at http://localhost:3000/
Serve a specific directory
$ servit /var/www/foo
Serving /var/www/foo at http://localhost:3000/
Serve a specific directory with options
$ servit -a 192.168.0.1 -p 8080 /var/www/foo
Serving /var/www/foo at http://192.168.0.1:8080/
servit transparently compiles .coffee, .ejs, and .styl files and sends
the output directly to the browser. No rendered files are written to disk, so
your working directory is left in a pristine state.
File extensions are taken literally. If you request .ejs, you'll get EJS:
$ curl http://localhost:3000/foo.ejs:
<!DOCTYPE html>
<title>Hello world</title>
<link rel="stylesheet" href="foo.css">
<script src="connect-reload.js"></script>
<script src="foo.js"></script>
<% include someAnotherTemplate %>
If you want the slightly-more-useful compiled html, request .htm or .html
instead:
$ curl http://localhost:3000/foo.html:
<!DOCTYPE html>
<title>Hello world</title>
<link rel="stylesheet" href="foo.css">
<script src="connect-reload.js"></script>
<script src="foo.js"></script>
<p>Some another template content</p>
Same goes for .coffee vs .js and .styl vs .css.
To enable automatic reloading of a page when a file in your project is created
or changed, simply include the virtual connect-reload.js in your markup:
<script src="connect-reload.js"></script>
(The MIT License)
Copyright (c) Patrik Votoček <patrik@votocek.cz>
Copyright (c) Shannon Moeller <me@shannonmoeller.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
The stupid development server. Serves CoffeeScript, EJS, and Stylus like a champ. Reloads browser on source-file change.
We found that servit 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
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.