r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

Show parent comments

1

u/aot2002 May 28 '19

They could always use npm-lazy if they want to cache it for multiple machines.

1

u/erulabs May 28 '19

npm-lazy

Haven't heard of this, but yarn already caches properly - the install time is very short, but for some reason the size of the directory comes up continually. No one seems to bat an eye at my Packer build which apt-get's about 3gb of applications - probably because they aren't aware. Anyways, my point is some Node developers tend to think of dependencies as a bad thing that should only ever be used in extreme need - getting the work done is always more important than bundle size. I can reduce bundle size easily - what I can't do is guess why you wrote your own file-system abstraction or Promise system, 6 months after you've quit and found a new job.