UNPKG

@graphql-codegen/cli

Version:

<p align="center"> <img src="https://github.com/dotansimha/graphql-code-generator/blob/master/logo.png?raw=true" /> </p>

10 lines (9 loc) 143 B
export function isURL(str) { try { const url = new URL(str); return !!url; } catch { return false; } }