Skip to content

Instantly share code, notes, and snippets.

@SeLub
Last active February 26, 2024 10:56
Show Gist options
  • Save SeLub/0b4545517148b7eff91cc1a6a518c47c to your computer and use it in GitHub Desktop.
Save SeLub/0b4545517148b7eff91cc1a6a518c47c to your computer and use it in GitHub Desktop.

Revisions

  1. SeLub revised this gist Feb 26, 2024. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion uuid_in_browser.md
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,12 @@ const UUID = url.substring(url.lastIndexOf('/') + 1);
    ```

    https://medium.com/teads-engineering/generating-uuids-at-scale-on-the-web-2877f529d2a2
    https://medium.com/teads-engineering/generating-uuids-at-scale-on-the-web-2877f529d2a2

    ---
    # Generate a UUID in NodeJS

    ```
    const { randomUUID } = require('crypto'); // Added in: node v14.17.0
    console.log(randomUUID());
    ```
  2. SeLub renamed this gist Feb 20, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. SeLub revised this gist Feb 20, 2024. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    # Generate a UUID in the browser

    ```
    const url = URL.createObjectURL(new Blob());
    const UUID = url.substring(url.lastIndexOf('/') + 1);

    ```
    ```

    https://medium.com/teads-engineering/generating-uuids-at-scale-on-the-web-2877f529d2a2
  4. SeLub created this gist Feb 20, 2024.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Generate a UUID in the browser
    ```
    const url = URL.createObjectURL(new Blob());
    const UUID = url.substring(url.lastIndexOf('/') + 1);

    ```