Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Impressive totalitarian style multipurpose web application server. All decisions are made. Ready for applied development.
Impressive totalitarian style multipurpose web application server for node.js. All decisions are made. Ready for applied development.
The main difference from others that Impress core is monolithic and its approach is to make all in one solution with high code coupling for obligatory things and leave not obligatory to be integrated by applied developers optionally. High coupling in core gives us advantages in performance and code simplicity. For example, why we should implement static files serving or memory caching as a plugin while no one application will omit that.
$ npm install impress
Following "server.js" is stating file. Run it using command line "node server" for debug or "nohup node server" for production.
require('impress');
impress.init(function() {
// Place here other initialization code
// to be executed after Impress initialization
});
File "access.js" is something line ".htaccess", you can easily define access restrictions for each folder, placing "access.js" in it. If folder not contains "access.js" it will inherit from parent folder and so on. Example:
module.exports = {
guests: true, // allow requests from not logged users
logged: true, // allow requests from logged users
http: true, // allow requests using http protocol
https: true, // allow requests using https protocol (SSL)
groups: [] // allow access for user groups listed in array
// or for all if array is empty or no groups field specified
}
File "request.js": place such file in folder to be executed on each request (GET, POST, PUT, etc.). If folder not contains "request.js" it will inherit from parent folder and so on. Example:
module.exports = function(req, res, callback) {
res.context.data = {
title: "Page Title",
users: [
{
name: "vasia", age: 22,
emails: ["user1@gmail.com", "user2@gmail.com"]
},{
name: "dima", age: 32,
emails: ["user3@gmail.com", "user4@gmail.com", "user5@gmail.com"]
}
],
session: JSON.stringify(impress.sessions[req.impress.session])
};
callback();
}
File "get.js": place such file in folder to be executed on GET request. For POST request "post.js", and so on. If folder not contains "get.js" it will inherit from parent folder and so on. Example:
module.exports = function(req, res, callback) {
db.polltool.query('select * from City', function(err, rows, fields) {
if (err) throw err;
res.context.data = { rows:rows, fields:fields };
callback();
});
}
File "html.template": place such file in folder as a main page template. Example:
<!DOCTYPE html>
<html>
<head>
<title>@title@</title>
</head>
<body>
<div>
Field value: @field@
</div>
<div>
Include template: @[name]@ - this will include file "./name.template"
</div>
<div>
This will iterate "res.context.data" from "request.js" example above:
@[users]@
<div>
User name: @.name@<br/>
User age: @.age@<br/>
Email addresses:
<ul>
@[emails]@
<li>@.value@</li>
@[/emails]@
</ul>
</div>
@[/users]@
</div>
</body>
</html>
Dual licensed under the MIT or RUMI licenses.
Copyright (c) 2012-2013 MetaSystems <timur.shemsedinov@gmail.com>
License: RUMI
Do you know what you are? You are a manuscript of a divine letter. You are a mirror reflecting a noble face. This universe is not outside of you. Look inside yourself; everything that you want, you are already that.
Jalal ad-Din Muhammad Rumi "Hush, Don't Say Anything to God: Passionate Poems of Rumi"
FAQs
Enterprise application server for Node.js
The npm package impress receives a total of 0 weekly downloads. As such, impress popularity was classified as not popular.
We found that impress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.