Implementations of Pronouns over DNS in JavaScript
- TypeScript 97.8%
- Nix 2.2%
| src | handle de-duping | |
| .envrc | flake | |
| .gitignore | flake | |
| flake.lock | flake | |
| flake.nix | flake | |
| package-lock.json | flake | |
| package.json | Makes NodeJS shut up | |
| README.md | add readme | |
| tsconfig.json | Fixes the "getPronouns is not a function" error. | |
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
}
}