UNPKG

monkey-bus

Version:

A micro-service bus framework for RabbitMQ

15 lines (12 loc) 300 B
module.exports = { string: function(str) { if (typeof str !== "string") { throw new Error("str should be string"); } var retStr = str.trim(); if (retStr === '') { throw new Error("str is empty"); } return retStr; } };