Giter VIP home page Giter VIP logo

Comments (6)

sindresorhus avatar sindresorhus commented on June 2, 2024

Doesn't really matter. A lot of other modules are using minimist and npm 3.0 will deduplicate by default, meaning you'll only have one of it anyways. Dependencies are cheap with npm.

from os-name.

stevenvachon avatar stevenvachon commented on June 2, 2024

Sure, they're cheap, but fewer dependencies is better :) Makes for a faster install. Things can always be improved too.

Thank you for fixing this!

from os-name.

sindresorhus avatar sindresorhus commented on June 2, 2024

Sure, they're cheap, but fewer dependencies is better :) Makes for a faster install.

Not for long. When npm dedupes by default you'll already have it in the cache and there will be no difference.

from os-name.

stevenvachon avatar stevenvachon commented on June 2, 2024

Dedupe does not remove steps; it only adds them. File size and app runtime memory usage is the only thing that will decrease. If the lib was never even there, npm has one less thing to download+extract+dedupe.

from os-name.

sindresorhus avatar sindresorhus commented on June 2, 2024

Nope. You're forgetting the cache. Yes, dedupe adds some overhead, but with SSD that's not much.

from os-name.

stevenvachon avatar stevenvachon commented on June 2, 2024

If only one dependency depends on minimist, and it happens to be a version that's not yet in cache, it will be downloaded.

Again, it's a minor perfection thing that helps make one library better than another. Kinda like files in package.json

from os-name.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.