Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Simple wrapper for NodeJS Express that has a bunch of dependencies, ready for use.
What it includes:
Express
, with gzip
compression and session
enabled.Class.js
that supports classical inheritance.log4js
for logging.ejs
as templating.underscore
as utilities.passport
for talking to 3rd party APIs.Check out server.js
for sample and configurations.
You can get started with importing the library:
var server = require('cews');
To initialize the server:
var app = new server.WebServer();
app.start();
Configurations are passed in the constructor:
var configs = {
port: 3001, // Port to start
cookieSecret: 'dummy-secret', // Secret token to encrypt cookie,
resourceFolder: 'public', // Should be absolute path to public static resource folder, like css and UI js stuff
log4js: {}, // Log4js configurations, checkout log4js doc for more details
csrf: false, // Enable/Disable csrf
cors: {
domains: '*' // Allow CORS
}
};
var app = new server.WebServer(configs);
app.start();
FAQs
Crud Express Web Server that has a bunch of dependencies set up already
We found that cews 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.