#fetch-api

[ follow ]
Web development
fromLogRocket Blog
3 months 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.
Web development
fromInfoWorld
3 months ago

5 ways to use JavaScript promises

Promises provide a simple, standardized mechanism to handle asynchronous operations in JavaScript by using resolve and reject to deliver results or errors.
fromnodesource.com
7 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 ]