• sndrtj@feddit.nl
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I’m a backend dev. I needed basically a single js function for my personal website that called out to some NPM package. I thought: I’ll do this the proper modern way, typescript and everything. Result: under 10 lines of code, but 12 config files (and 1.5h of fiddling with ES Modules vs CommonJS).

    • Big P@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      The correct way is you download the npm package, copy and paste the function you need and paste it directly into your website