Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable using polr shortener instead tinyurl #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mzagar
Copy link

@mzagar mzagar commented Nov 5, 2022

Added an option to specify polr shortner url in which case polr shortener API will be called to shorten url instead using tinyurl.

I'd like to use polr since it's open source and am able to run it locally which allows me, together with running plantuml server locally, not to send diagrams to 3rd party services but keep everything in-house.

Quick test: ./index.js --polr-url https://demo.polr.me/

@mzagar
Copy link
Author

mzagar commented Nov 22, 2022

@danielyaa5 any chance to merge/release this ? please let me know if something needs improving...

Copy link
Owner

@danielyaa5 danielyaa5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this! Just some small changes requested. How does POLR compare to tiny URL?

index.js Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
index.js Show resolved Hide resolved
@mzagar
Copy link
Author

mzagar commented Nov 28, 2022

Hi, sorry for the delay - proposed improvements implemented, please review the changes.

Copy link
Owner

@danielyaa5 danielyaa5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one last thing. Can you tell me why you want to have POLR supported? I don't know anything about it. Why is it better than tinyurl?

@mzagar
Copy link
Author

mzagar commented Nov 29, 2022

Regarding why polr - please see description of this PR -- not that it is better than tinyurl, just open source and happens to be something I am already running locally for shorting urls and would not like to change by introducing tinyurl; main goal is to keep diagrams inhouse and not send them to 3rd party services.

@danielyaa5
Copy link
Owner

thanks, i will take a final pass at this soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants