šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

dnsstamp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnsstamp

DNS Stamp de/encoder

1.1.3
latest
Source
npm
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
Ā 
Created
Source

DNS Stamp

This node module provides a simple API to parse and generate DNS Stamp as defined by Frank Denis.

Installation

npm install dnsstamp

Usage

Parse a stamp URL:

const DNSStamp = require('dnsstamp');

let stamp = DNSStamp.parse(sdns);

Create a stamp URL:

const DNSStamp = require('dnsstamp');

let stamp = new DNSStamp.DNSCrypt(addr, {
    pk: pk,
    providerName: providerName,
});
let sdns = stamp.toString();

Supported stamps:

  • DNSStamp.DNSCrypt: constructor(addr, {props, pk, providerName})
  • DNSStamp.DOH: constructor(addr, {props, hostName, hash, path})
  • DNSStamp.DOT: constructor(addr, {props, hostName, hash})
  • DNSStamp.Plain: constructor(addr, {props})

Licenses

All source code is licensed under the MIT License.

Keywords

dns

FAQs

Package last updated on 14 May 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