UNPKG

node-soc-lite

Version:

A security middleware for NodeJs(express) app to Detect OWASP Top Basic and generate report in your ThreatEquation dashboard.

7 lines (6 loc) 186 B
'use strict'; // it will check the version of user module.exports = function (version) { var version_number = version.match(/(\d+)/)[1]; return parseInt(version_number) >= 5; };