UNPKG

@gqty/cli

Version:

## Visit [https://gqty.dev/docs/cli/codegen](https://gqty.dev/docs/cli/codegen)

3 lines (2 loc) 217 B
#!/usr/bin/env node const s=e=>{if(!(e!=null&&e.length))return;const t={};for(const o of e){const[n,r]=o.trim().split(/\s*:\s*/);n&&r&&(t[n]=r)}if(Object.keys(t).length!==0)return t};export{s as convertHeadersInput};