3 ms·
I wonder how many terrabytes of storage would be saved by people realising these exist and not relying on thousands of tiny npm packages to do their own impleme
by esskay 4y ago
I wonder how many terrabytes of storage would be saved by people realising these exist and not relying on thousands of tiny npm packages to do their own implementation of what some of these API's do.
- unsupp0rted 4y agoThere could be some NPM packages where the readme is “Don’t use this. This is an empty lib that only outputs this sentence. Use the XYZ api to do this instead, with docs found at: https:// https:// …”
- ehnto 4y agoI cleared 4gb out of my npm package cache the other day. Never in any version of the history of software was I expecting to end up with gigabytes of javascript on my machine, but here we are.
- WorldMaker 4y agoNode itself needs to better enable some of these. Off hand, I am aware that much of Intl was still flaky in Node into much too recently despite being rock solid in browsers for a lot longer. This is an area where Deno competition seems to be helping. Also, related to Intl replacing tons of code, Moment.js has this disclaimer up top of its README and npmjs.org listing today: > Moment.js is a legacy project, now in maintenance mode. But this is not big or bold enough and it is amazing how many projects still rely on a legacy package like this, which is huge because it bundles its own Intl replacement because it predates Intl. (Please use Luxon or date-fns or Intl.DateTimeFormat directly in 2022 rather Moment.js.)