Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fdoh

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fdoh

Fetch DNS over HTTPS

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

FDOH

npm version Build Status Coverage Status

Fetch with DNS over HTTPS

The point of this utility is to be able to utilize fetch with your DNS queries running over HTTPS from Cloudflare 1.1.1.1 or Google DNS over HTTPS.

Fetch Example

  • Link

As Axios Interceptor

Utilization of this can also be added as an axios plugin.

Installation

npm install --save fdoh

Usage of Primary Class

  • Fdoh
    • Arguments

      • url {String}(Fetch API Url)
      • options {Object}(Fetch API Object)
      • provider {String}(GOOGLE or CLOUDFLARE. Defaulted to Cloudflare)
      • responseWithConfig {Boolean} (Utilized to return a basic config for middleware or interceptor libraries)
    • Returns {Optional Object or Function-Object}

      • if responseWithConfig is not passed, Fetch or Node-Fetch is returned
      • if responseWithConfig is set to true, an object is returned
        • Object
          • uri {String}
          • headers {Object}

Keywords

FAQs

Package last updated on 24 Jan 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc