
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
This is light weight mvc wrapper for express on node.js inspired by Zend Framework on php.
This framework reload modules, controllers and models automatically when they are changed without restart.
###installation
npm install mvc
##samples of application structure:
###without modules (https://github.com/morozovsk/mvc/tree/master/samples/sample-without-modules)
app/
-controllers/
--index.js
-models/
--message.js
-views/
--layout.ejs
--index/
---index.ejs
###with modules (https://github.com/morozovsk/mvc/tree/master/samples/sample-with-modules)
app/
-controllers/
--index.js
-models/
--message.js
-views/
--layout.ejs
--index/
---index.ejs
-modules/
--admin/
---controllers/
----index.js
---models/
----message.js
---views/
----layout.ejs
----index/
-----index.ejs
You can use helpers in your controllers:
this._app - link to express.createServer()
this._request - link to express request
this._response - link to express response
this._params - link to request.params
this._param - link to request.param
this._query - link to request.query
this._cookies - link to request.cookies
this._partial - link to response.partial
this._redirect - link to response.redirect
this._local - link to response._local
this._locals - link to response._locals
this._queryParam(name, defaultValue) - method for request.query like request.param
this._url(params) - method for generate url from object (example: this._url({controller:"message", action:"edit", id: 5}) => '/message/edit?id=5')
routes:
/
/controller
/controller/action
/controller/action?param1=value1¶m2=value2
/controller?param1=value1¶m2=value2
/module/controller
/module/controller/action
/module/controller/action?param1=value1¶m2=value2
/module/controller?param1=value1¶m2=value2
/module?param1=value1¶m2=value2
/?param1=value1¶m2=value2
FAQs
mvc wrapper for express like Zend framework on php
The npm package mvc receives a total of 8 weekly downloads. As such, mvc popularity was classified as not popular.
We found that mvc 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.