PHP 8.2.30
Preview: node-ponyfill.js Size: 624 B
/home/byroehnu/.trash/node_modules11/cross-fetch/dist/node-ponyfill.js

const nodeFetch = require('node-fetch')
const realFetch = nodeFetch.default || nodeFetch

const fetch = function (url, options) {
  // Support schemaless URIs on the server for parity with the browser.
  // Ex: //github.com/ -> https://github.com/
  if (/^\/\//.test(url)) {
    url = 'https:' + url
  }
  return realFetch.call(this, url, options)
}

fetch.ponyfill = true

module.exports = exports = fetch
exports.fetch = fetch
exports.Headers = nodeFetch.Headers
exports.Request = nodeFetch.Request
exports.Response = nodeFetch.Response

// Needed for TypeScript consumers without esModuleInterop.
exports.default = fetch

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
17.74 KB lrw-r--r-- 2026-02-28 00:26:48
Edit Download
18.89 KB lrw-r--r-- 2026-02-28 00:27:00
Edit Download
9.00 KB lrw-r--r-- 2026-02-28 00:27:12
Edit Download
28.38 KB lrw-r--r-- 2026-02-28 00:28:06
Edit Download
278 B lrw-r--r-- 2026-02-28 00:27:22
Edit Download
624 B lrw-r--r-- 2026-02-28 00:27:30
Edit Download
376 B lrw-r--r-- 2026-02-28 00:27:34
Edit Download
373 B lrw-r--r-- 2026-02-28 00:27:44
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).