Show HN: Givemeguid.com – CLI/curl friendly GUIDs
givemeguid.com
Show HN: Givemeguid.com – CLI/curl friendly GUIDs
1–10 of 51 posts
Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#2Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#3Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#4I'm having trouble imagining who would want to use this. What's the environment where you would have curl and a need for generating UUIDs, but wouldn't have access to uuidgen or similar?
Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#5I'm having trouble imagining who would want to use this. What's the environment where you would have curl and a need for generating UUIDs, but wouldn't have access to uuidgen or similar?
I was surprised to see that there is no "built-in" mechanism in JS to generate a GUID. As a C# dev, I'm used to Guid.NewGuid()
Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#6Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#7I'm having trouble imagining who would want to use this. What's the environment where you would have curl and a need for generating UUIDs, but wouldn't have access to uuidgen or similar?
Maybe a JS App which is made completely out of third party APIs, without anything self-hosted? Not discussing wether this is a good idea or not, though... I was surprised to see that there is no "built-in" mechanism in JS to generate a GUID. As a C# dev, I'm used to Guid.NewGuid()
https://gist.github.com/jed/982883
If you google "generate uuid javascript" you can find approaches from Math.random to node/browser `crypto` module to shelling out OS random.
One of the main benefits of guid generation is that you don't need to synchronize with anything to generate a unique ID, so it's weird to incur an http request, especially to someone else's service. At that point you might as well just phone home to your own service.
Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#8I will just leave it here: https://www.uuidgenerator.net/api
Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#9Re: Show HN: Givemeguid.com – CLI/curl friendly GUIDs
#10Instructions are in the headers. Query string params for returning multiple GUIDs, and optionally returning JSON.