• Stars
    star
    233
  • Rank 168,793 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WHATWG fetch ponyfill

Fetch Ponyfill

WHATWG fetch ponyfill

This module wraps the github/fetch polyfill in a CommonJS module for browserification, and avoids appending anything to the window, instead returning a setup function when fetch-ponyfill is required. Inspired by object-assign.

When used in Node, delegates to node-fetch instead.

Usage

Browserify

const {fetch, Request, Response, Headers} = require('fetch-ponyfill')(options);

Webpack

import fetchPonyfill from 'fetch-ponyfill';
const {fetch, Request, Response, Headers} = fetchPonyfill(options);

Options

Where options is an object with the following optional properties:

option description
Promise An A+ Promise implementation. Defaults to window.Promise in the browser, and global.Promise in Node.
XMLHttpRequest The XMLHttpRequest constructor. This is useful to feed in when working with Firefox OS. Defaults to window.XMLHttpRequest. Has no effect in Node.

More Repositories

1

mixomatic

Create mixins which work with instanceof (friendly for unit tests).
JavaScript
23
star
2

vertebrate-event-emitter

An event emitter implementation robust against memory leaks.
JavaScript
10
star
3

navbar

A tiny library to create nav elements that smart update on scroll to keep the correct item active. Fast, supports older browsers, and has no dependencies.
JavaScript
10
star
4

toisu

A server micro-framework for Node.js, written for middleware that return promises. Ready for async-await!
JavaScript
9
star
5

qubyte-codes

My personal site.
JavaScript
8
star
6

rubidium

โŒ› A small unique job scheduler.
JavaScript
7
star
7

Japanese-Guide

Some notes, mainly on conjugations in the Japanese language.
Haskell
7
star
8

szalinski

An image resizing service, written in Node.js with Toisu! and backed by an LRU redis cache.
JavaScript
6
star
9

QuantumBoosty

A few files to demonstrate some useful C++ features for integrating Schrรถdinger and master equations. These files use ublas (from Boost) and the odeint library, which is currently in the Boost sandbox.
C++
5
star
10

github_webhook_message_validator

A library to check that payloads from github webhooks are valid.
Rust
4
star
11

vertebrate

Inspired by Backbone, crafted in ES6.
JavaScript
3
star
12

configeur

Extensible parsing of environment variables into config for Node.js.
JavaScript
3
star
13

dockerized-node-app

A demonstration of a dockerized node app with a secret.
Dockerfile
3
star
14

BibDirective

Similar to directives for TeXShop and TeXWorks to select a LaTeX engine, this allows you to use a directive for processing bibliographies.
Shell
3
star
15

toisu-monorepo

Packages considered core functionality to the Toisu! Node.js server framework.
JavaScript
2
star
16

node-rumplestiltskin

Reveals an object's true name
JavaScript
1
star
17

qubyte.github.io

http://qubyte.github.io
CSS
1
star
18

async-await-talk

JavaScript
1
star
19

es2015-deferred

A tiny constructor for deferred objects. Useful for stubbing promises in tests.
JavaScript
1
star
20

cert-creator

Create self-signed certificates for HTTPS in development.
Shell
1
star
21

dominion

Express domain middleware.
JavaScript
1
star
22

rust-echo-server

Exploration into using rust with hyper as a server.
Rust
1
star
23

micropub-server

My micropub server.
JavaScript
1
star
24

qubyte

Because sometimes remembering qubyte.codes is harder than running `npx qubyte`.
JavaScript
1
star
25

warden

๐Ÿ‘ฎ A wrapper for Panopticon that makes adding measurements to your codebase simple and efficient.
JavaScript
1
star
26

mastodon-webmention-relay

Periodically call me to check for new toots by you and relay webmentions to URLs in them.
JavaScript
1
star
27

github-rustlang-webhook-server

An exploration into using Rust to build a web server.
Rust
1
star
28

japanese-conjugations

Practice Japanese verb conjugations.
JavaScript
1
star
29

rel-payment

Discover a rel="payment" donations URL given a URL for the containing page.
JavaScript
1
star
30

new-npm-versions-bot

I tweet when one of my owner's packages is updated on npm.
JavaScript
1
star
31

qrcode-png

Create QR code PNG files! This module has a custom built PNG encoder for QR codes to make them tinier than the competition, and works *fast* in both the browser and Node. It has a light dependency tree.
JavaScript
1
star
32

append-file-watcher

A module which watches a file for appended data, and emits new data as a buffer. File is closed between emissions.
JavaScript
1
star