• [object Object]@lemmy.ca
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 day ago

    That’s fair, I won’t pretend pypi/pip and running uvx is much safer than npx.

    But why hasn’t JavaScript established a defacto stdlib to replace ask the left pads and is even type packages?

    I’ve taken a near zero dependency policy on my personal projects regardless, and now I run most code in containers to sandbox it.

    • Tekhne@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      20 hours ago

      If you’re asking why there isn’t one shipped with JS, the answer is because JS is built for the web, and the “don’t break the web” rule makes changing things in JS hard, as well as browser devs pushing back hard on anything that increases install size.

      If you’re asking why as a community, we haven’t agreed on a single package to be a stdlib - lodash.

    • anyhow2503@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      But why hasn’t JavaScript established a defacto stdlib to replace ask the left pads and is even type packages?

      I’m guessing things were working out pretty alright, even with the insane amount of dependencies per project. The awareness and the increasing frequency of supply chain attacks is relatively recent for npm. But who knows, maybe the tech giants in control of the web standards are happy to keep using their own vendored registries.