Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mvcfun

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvcfun

MVC based web server framework

  • 0.1.4-r2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

MVCfun

MVCfun is an model-view-controller based web server framework.

Register controllers to ressource paths. You may use regular expressions for this to register a controller to a bunch of paths at once.

This project is under high development and new features pop out every week. Contributers are very welcome.

Quick example

var mvcfun     = require('mvcfun'),
    controller = mvcfun.controller,
    regexp     = mvcfun.regexp;

var server = (new mvcfun.http.Server())
    .listen(8080)
    .on('error', function(err) {
        console.log(err.stack);
        server.close(function() { process.exit(1) });
    });

server.addController(new controller.Static(regexp.files));
server.addController(new controller.Forbidden(regexp.directories));

This creates an http server listening on port 8080. It serves all static files located relatively to the default directory 'htdocs' and forbid any access to directories.

Key features

- MVC based developing the cool way
- High unit test coverage
- RESTFul developing possible in same framework

Keywords

FAQs

Package last updated on 01 Jul 2013

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc