- Add .gitignore: exclude compiled binaries, build artifacts, and Helm values files containing real secrets (authentik, prometheus) - Add all Kubernetes deployment manifests (deployment/) - Add services source code: ha-sync, device-inventory, games-console, paperclip, parts-inventory - Add Ansible orchestration: playbooks, roles, inventory, cloud-init - Add hardware specs, execution plans, scripts, HOMELAB.md - Add skills/homelab/SKILL.md + skills/install.sh to preserve Copilot skill - Remove previously-tracked inventory-cli binary from git index Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| .esm-wrapper.mjs | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
mongodb-connection-string-url
MongoDB connection strings, based on the WhatWG URL API
import ConnectionString from 'mongodb-connection-string-url';
const cs = new ConnectionString('mongodb://localhost');
cs.searchParams.set('readPreference', 'secondary');
console.log(cs.href); // 'mongodb://localhost/?readPreference=secondary'
Deviations from the WhatWG URL package
- URL parameters are case-insensitive
- The
.host,.hostnameand.portproperties cannot be set, and reading them does not return meaningful results (and are typed asneverin TypeScript) - The
.hostsproperty contains a list of all hosts in the connection string - The
.hrefproperty cannot be set, only read - There is an additional
.isSRVproperty, set totrueformongodb+srv:// - There is an additional
.clone()utility method on the prototype
LICENSE
Apache-2.0