News for hackers. Stuff that matters.
Re:Jest not recommended to be used in Node.js due to instanc... by pcthrowaway on Saturday July 01, 2023 @06:08AM (#36548514)
Things like the sparkline charts on npmjs (e.g. https://www.npmjs.com/package/npm ) are interactive SVGs. I think they're pretty common for data visualizations of all kinds
Re:Jest not recommended to be used in Node.js due to instanc... by josephg on Saturday July 01, 2023 @08:42AM (#36549499)
Sure, but data visualisations make up a tiny percentage of websites.
Re:Jest not recommended to be used in Node.js due to instanc... by afavour on Saturday July 01, 2023 @10:47AM (#36550694)
That’s a great example of what I’m talking about: it would be the perfect place to bring in a react-svg module. Vast majority of sites don’t use sparkline so the SVG stuff is unused.