UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

11 lines (8 loc) 288 B
'use strict'; var toPosInt = require('es5-ext/number/to-pos-integer') , maxTimeout = require('./max-timeout'); module.exports = function (value) { value = toPosInt(value); if (value > maxTimeout) throw new TypeError(value + " exceeds maximum possible timeout"); return value; };