Socket
Socket
Sign inDemoInstall

fetch-for-babel-umd

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fetch-for-babel-umd

Allows fetch to be used with Babel exporting UMD


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
513 kB
Created
Weekly downloads
 

Readme

Source

fetch for babel

Purpose

Use this module when creating ES2015 modules that will be exported to UMD via Bower.

Example

import 'fetch-for-babel'
// Adds "fetch" to global scope in Node, does nothing in browser, leaving native fetch alone.
// Browsers without native fetch will require a polyfill.

fetch('https://example.com').then(response => {
  if (response.ok) {
    // do something
  }
}, error => {
  console.error(error)
})

Keywords

FAQs

Last updated on 01 Nov 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc