🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
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

fetch

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