UNPKG

@artilleryio/platform-fargate

Version:
1 lines 286 B
"use strict";function parseTags(input){var tags=[];if(input)for(const t of input.split(",").map(x=>x.trim())){var cs=t.split(":");2!==cs.length?console.error("Invalid tag, skipping: "+t):tags.push({name:cs[0].trim(),value:cs[1].trim()})}return tags}module.exports={parseTags:parseTags};