For when you need to be safe... but not too safe!
Sometimes you need to show someone some web pages. And you need to make sure only that the chosen person sees it. FlirtyHost will host a folder of static web content for you, and protect it with a simple username and password.
This is not intended for top secret projects. This is for convenience only!
Install the module with:
npm install flirty-host
var FlirtyHost app;FlirtyHost = require'flirty-host';app = FlirtyHosthost'./public'username: 'bert'password: 'earnie'maxAge: 600000;applisten3333return console.log"server active on 3333";;
npm install -g flirty-host
flirt and you'll be prompted to provide the folder, port and login credentials you want to use.
If you don't provide a username and password the content will be hosted without the need to login.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Copyright (c) 2013 Darren Wallace
Licensed under the MIT license.