Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
ssl-express-www
Advanced tools
Readme
Force SSL (HTTPS) when HTTP is required using Express (Nodejs). Remove www and trailing slash on domain.
npm i ssl-express-www
var express = require('express');
var secure = require('ssl-express-www');
var app = express();
app.use(secure);
var port = process.env.PORT || 3000;
app.listen(port, () => console.log('Server listening.'));
Transpile it with Babel
import express from 'express';
import secure from 'ssl-express-www';
const app = express();
app.use(secure);
let port = process.env.PORT || 3000;
app.listen(port, () => console.log('Server listening.'));
This command will solve the problem with linebreak replacement on git commit
.
git config --global core.autocrlf input
Babel@6 doesn't export default module.exports
any more.
npm i -D babel-plugin-add-module-exports
Usage in file .babelrc
{
"presets": ["env"],
"plugins": [
"add-module-exports"
]
}
View usage | view
npm version patch -m "Bumped to version %s"
v2.1.1
npm version minor
v1.2.1
npm version major
v3.1.1
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
Redirecting HTTP to HTTPS. It forces SSL (HTTPS) when HTTP is required using Express (Nodejs) and remove www and trailing slash on your domain.
We found that ssl-express-www 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).