Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 529 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 529 Bytes

Rest Yourls

A simple rest client for generating short urls from Yourls backend.

Example:

  const response = await getShortLink({
    username: process.env["YOURLS_USERNAME"]!,
    password: process.env["YOURLS_PASSWORD"]!,
    serverUrl: process.env["YOURLS_SERVER_URL"]!,
    // A uniquely generated url
    url: `https://example-${Date.now()}.com`,
  });

    console.log(response); // Should be completely typed and expected output

Thanks for reading!

By Vedik Dev: Himanshu Jangid @himanshurajora