tycrek / ass

The simple self-hosted ShareX server
ISC License
655 stars 53 forks source link

[FEATURE] Use NanoID #158

Closed tycrek closed 1 year ago

tycrek commented 2 years ago

Description

Check out NanoID

Recontaminated commented 2 years ago

Is there an issue with the current ID system or speed improvement?

wdhdev commented 1 year ago

Is there an issue with the current ID system or speed improvement?

NanoID is faster and smaller.

e.g:

const { nanoid } = require("nanoid");
const id = nanoid();

console.log(id);
tycrek commented 1 year ago

Nano ID was added in https://github.com/tycrek/ass/pull/177/commits/62dae23681c909cf13df15a8ec2966e0c9d652e9 / https://github.com/tycrek/ass/pull/177/commits/d93fda89d6c58e0902e52ff896f5741b18fc7f19 and will be included in 0.14.0