INNER CODE UNIT · TypeScript

urlRegexp

Escape-Technologies/graphman · src/cli.ts:58

const urlRegexp = /https?:\/\/*/;
if (!urlRegexp.test(url)) {
  console.error(`${url} is not a valid url`);
  Deno.exit(1);
}

console.log(`Creating the Postman collection for ${url}`);

const postmanCollection = await createPostmanCollection(
  url,
  headers,
  authHeader,
);

path = path ||
  "./out/" + postmanCollection.info.name + ".postman_collection.json";
path && ensureDirSync("./out/");
try {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…