Nitrogen Poisonous Monoxide

    dnsstamp

    1.1.3 • Public • Published

    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.

    Install

    npm i dnsstamp

    DownloadsWeekly Downloads

    4

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    40.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • rs