coal-codes
v0.1.0
Published
[ALPHA] This is a framework/utilites group to make your work faster
Downloads
4
Maintainers
Readme
coal-codes
This is a framework/group of utilities to create an app easily
Features
Example
const coal = require('coal-codes');
const app = coal('Your Application Name', {autodetect: true});
Options
autodetect
If true, coal will try to autodetect some features like root path, routes, etc.
You can customize the features by passing an object to the options
parameter.
options = {
autodetect: true || false,
}
options = {
autodetect: {
path: true,
controllers: false,
routes: false
},
}
express
options = {
express: {
limit: '25mb',
bodyParser: {},
json: {},
urlencoded: {extended: true}
}
}
session
options = {
session: {
resave: false,
saveUninitialized: true,
cookie: {
maxAge: 30000000 // close to 1 year
}
}
}