From 152096585306f1a6f3812181a3cd5210f9382b9a Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 24 Jul 2022 17:36:38 -0500 Subject: [PATCH] Rewritting the class comentary. --- src/MiniDocs/NanoID.class.st | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/MiniDocs/NanoID.class.st b/src/MiniDocs/NanoID.class.st index ff67cb6..f192180 100644 --- a/src/MiniDocs/NanoID.class.st +++ b/src/MiniDocs/NanoID.class.st @@ -1,5 +1,17 @@ +" +I'm run an implementation of the [Nano ID](https://github.com/ai/nanoid) tiny, secure URL-friendly unique string ID generator via its [Nim implementation](https://github.com/icyphox/nanoid.nim). + +I have hard coded: + + * a [base 58 encoding](https://medium.com/concerning-pharo/understanding-base58-encoding-23e673e37ff6) alphabet to avoid similar looking letter and the use of non-alphanumeric characters. +" Class { #name : #NanoID, #superclass : #Object, #category : #'MiniDocs-MiniDocs' } + +{ #category : #accessing } +NanoID class >> scriptSourceCode [ + ^ FileLocator image parent / 'pharo-local/iceberg/Offray/MiniDocs/src/nanoIdGen.nim' +]