isPort.js 432 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = isPort;
  6. var _isInt = _interopRequireDefault(require("./isInt"));
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. function isPort(str) {
  9. return (0, _isInt.default)(str, {
  10. min: 0,
  11. max: 65535
  12. });
  13. }
  14. module.exports = exports.default;
  15. module.exports.default = exports.default;