express-power
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,4 +7,4 @@ # express-power Changelog | ||
## [1.0.0] - 2020-10-21 | ||
## [1.0.1] - 2020-10-21 | ||
### Initial Public Release | ||
- Effortless clustering, logging & colors with Express. |
@@ -105,10 +105,4 @@ require("colors"); | ||
const isFunction = functionToCheck => { | ||
return functionToCheck && {}.toString.call(functionToCheck) === '[object Function]'; | ||
} | ||
const load = (options = {}) => { | ||
args = {...args, ...options}; | ||
if (!isFunction(args.master)) return console.log("Power error: master must be a function".red); | ||
if (!isFunction(args.worker)) return console.log("Power error: worker must be a function".red); | ||
if (typeof args.workers !== "number") return console.log("Power error: workers must be a number".red); | ||
@@ -115,0 +109,0 @@ if (typeof args.logToFile !== "boolean") return console.log("Power error: logToFile must be a boolean".red); |
{ | ||
"name": "express-power", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Express with superpowers! Effortless clustering, logging & colors with Express.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8902
102