1
0
Fork
You've already forked podns-js
1
Implementations of Pronouns over DNS in JavaScript
  • TypeScript 97.8%
  • Nix 2.2%
2026年07月11日 11:08:05 +02:00
src handle de-duping 2026年01月20日 19:48:36 +01:00
.envrc flake 2026年05月07日 22:12:46 +02:00
.gitignore flake 2026年05月07日 22:12:46 +02:00
flake.lock flake 2026年05月07日 22:12:46 +02:00
flake.nix flake 2026年05月07日 22:12:46 +02:00
package-lock.json flake 2026年05月07日 22:12:46 +02:00
package.json Makes NodeJS shut up 2026年07月11日 09:13:35 +02:00
README.md add readme 2026年01月19日 17:06:14 +01:00
tsconfig.json Fixes the "getPronouns is not a function" error. 2026年07月11日 06:14:10 +02:00

PoDNS

This is a Node.JS implementation of Pronouns over DNS, a way to define pronouns using DNS TXT records.

Usage

const getPronouns = require("podns");
await getPronouns("mauve.beer");

Return values

{
 type: "pronouns"|"wildcard"|"none"|"comment-only"
 raw // raw data fetched
 cleanedRaw // cleaned up version of the fetch data (e.g. "SHE/ Her #hello!" -> "she/her")
 comment?
 // everything below this requires type to be "pronouns" in order to exist
 tags // array that can only contain "preferred" and/or "plural"
 pronouns: {
 subject //first part of the pronouns
 object // second
 possessiveDeterminer // third
 possessivePronoun // fourth
 reflexive // fifth
 }
}