1.0.0 • Published 5 months ago

rest-yourls v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

1.0.0

5 months ago