UNPKG

node-fetch-native

Version:

better fetch for Node.js. Works on any JavaScript runtime!

12 lines (8 loc) 216 B
const nodeFetch = require("../dist/index.cjs"); function fetch(input, options) { return nodeFetch.fetch(input, options); } for (const key in nodeFetch) { fetch[key] = nodeFetch[key]; } module.exports = fetch;