adamgibbons / ics

iCalendar (ics) file generator for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace uuid with nanoid to reduce the bundle size

0xdevalias opened this issue · comments

One the same lines moving away from uuid and toward nanoid will further reduce bundle size

Originally posted by @atomicpages in #149 (comment)


One the same lines moving away from uuid and toward nanoid will further reduce bundle size

Please! I was just about to say the same, then saw this comment.

Originally posted by @0xdevalias in #149 (comment)


For some visual stats, according to bundlephobia, 1.5% (~2.46kB) of this lib's 160.8kB (min) size comes from uuid:

(see #149 (comment) + #178 for the issue + PR to fix the size issues related to joi)

image

nanoid is merged, can this be closed than?