#fetch-api

[ follow ]
Web development
fromLogRocket Blog
1 month ago

Anti-libraryism: 10 web APIs that replace modern JavaScript libraries - LogRocket Blog

Major browsers provide native Web APIs that replace many common JavaScript libraries, enabling smaller bundles, improved runtime performance, and reduced dependency maintenance.
#javascript
fromnodesource.com
6 months ago

15 Recent Node.js Features that Replace Popular npm Packages

Before: Developers installed node-fetch to use the familiar browser fetch() API in Node.js. Now: Starting in Node.js 18, fetch() is a global function, identical to the browser implementation. const res = await fetch('https://api.github.com/repos/nodejs/node'); const data = await res.json(); console.log(data.full_name); // "nodejs/node" When added: Introduced in Node.js v17.5.0 (experimental) Stabilized: Became stable (no longer experimental) in Node.js v18.0.0 When to still use node-fetch: Only if you need older Node.js compatibility (pre-18).
Node JS
[ Load more ]