nanoid
nanoid copied to clipboard
Make it possible to convert external inputs to nanoids
This PR converts format's argument from a function pointer to a closure. This makes it more flexible as closures can capture their environment, making it possible to convert things like UUIDs to Nano IDs.