{"id":32078569,"url":"https://github.com/igorskyflyer/npm-zitto","last_synced_at":"2026-05-19T05:34:47.074Z","repository":{"id":316309171,"uuid":"1062128772","full_name":"igorskyflyer/npm-zitto","owner":"igorskyflyer","description":"🤫 Zitto - quiet config, loud clarity. A zero-dependency TypeScript/JavaScript helper for merging defaults and options across Node, Deno, Bun, and browsers. 🍯","archived":false,"fork":false,"pushed_at":"2025-09-23T18:57:42.000Z","size":94,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T18:36:53.601Z","etag":null,"topics":["back-end","config","default","igor-dimitrijevic","igorskyflyer","interface","javascript","js","options","quiet","silent","ts","typescript","zitto"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@igorskyflyer/zitto","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igorskyflyer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"ko_fi":"igorskyflyer"}},"created_at":"2025-09-22T21:03:39.000Z","updated_at":"2025-09-27T22:36:21.000Z","dependencies_parsed_at":"2025-09-23T22:18:46.076Z","dependency_job_id":"0052ad38-54b4-4e6a-97aa-27ee981ffbec","html_url":"https://github.com/igorskyflyer/npm-zitto","commit_stats":null,"previous_names":["igorskyflyer/npm-zitto"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/igorskyflyer/npm-zitto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zitto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zitto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zitto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zitto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igorskyflyer","download_url":"https://codeload.github.com/igorskyflyer/npm-zitto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zitto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33203121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["back-end","config","default","igor-dimitrijevic","igorskyflyer","interface","javascript","js","options","quiet","silent","ts","typescript","zitto"],"created_at":"2025-10-19T08:22:50.729Z","updated_at":"2026-05-19T05:34:47.060Z","avatar_url":"https://github.com/igorskyflyer.png","language":"TypeScript","funding_links":["https://ko-fi.com/igorskyflyer"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/igorskyflyer/npm-zitto/main/media/zitto.png\" alt=\"Icon of Zitto\" width=\"256\" height=\"256\"\u003e\n  \u003ch1\u003eZitto\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cblockquote align=\"center\"\u003e\n  Zero-Dependency Utility • Runtime-Safe Options • Predictable Defaults • Strict Config Control\n\u003c/blockquote\u003e\n\n\u003ch4 align=\"center\"\u003e\n  🤫 Zitto - quiet config, loud clarity. A zero-dependency TypeScript/JavaScript helper for merging defaults and options across Node, Deno, Bun, and browsers. 🍯\n\u003c/h4\u003e\n\n\u003cbr\u003e\n\n## 📃 Table of Contents\n\n- [**Features**](#-features)\n- [**Usage**](#-usage)\n- [**API**](#-api)\n- [**Examples**](#️-examples)\n- [**Changelog**](#-changelog)\n- [**Support**](#-support)\n- [**License**](#-license)\n- [**Related**](#-related)\n- [**Author**](#-author)\n\n\u003cbr\u003e\n\n## 🤖 Features\n\n- ⚡ Always returns defaults when no opts passed  \n- 🛠 Merges known keys with defaults  \n- 🚫 Throws on unknown keys at runtime  \n- 🧩 Enforces object shape with TS and runtime  \n- 🔒 Strict variant drops extras automatically  \n- 🪶 Tiny zero-dep footprint  \n- 📦 Predictable results across runtimes\n\n\u003cbr\u003e\n\n## 🕵🏼 Usage\n\nInstall it by executing any of the following, depending on your preferred package manager:\n\n```bash\npnpm add @igorskyflyer/zitto\n```\n\n```bash\nyarn add @igorskyflyer/zitto\n```\n\n```bash\nnpm i @igorskyflyer/zitto\n```\n\n\u003cbr\u003e\n\n## 🤹🏼 API\n\n### defineOptions\n\n```ts\nfunction defineOptions\u003cT extends object\u003e(\n  defaults: T,\n  options?: Partial\u003cT\u003e\n): T\n```  \n\nMerge defaults with optional user options.  \n\n`T` - Shape of the `defaults` object  \n\n`defaults` - Base configuration with required keys  \n\n`options` - Optional overrides, must be a subset of defaults\n\n\u003cbr\u003e\n\nReturns a new object with defaults and overrides merged.  \n\n\u003cbr\u003e\n\n### defineStrictOptions\n\n```ts\nfunction defineStrictOptions\u003cT extends object, U extends Partial\u003cT\u003e\u003e(\n  defaults: T,\n  options?: U\n): T\n```  \n\nMerge defaults with optional user options, dropping unknown keys.  \n\n`T` - Shape of the defaults object  \n\n`U` - Subset of `T` allowed as overrides  \n\n`defaults` - Base configuration with required keys  \n\n`options` - Optional overrides, must be a subset of defaults\n\n\u003cbr\u003e\n\nThrows a `TypeError` if `options` is not an object  \n\nThrows an `Error` if `options` contains unknown keys  \n\nReturns a new object with defaults and known overrides merged.\n\n\u003cbr\u003e\n\n## 🗒️ Examples\n\n```ts\nimport { defineOptions, defineStrictOptions } from '@igorskyflyer/zitto'\n\nconst opts = defineOptions({ retries: 3, verbose: false }, { verbose: true })\n// =\u003e { retries: 3, verbose: true }\n\nconst opts = defineStrictOptions({ retries: 3, verbose: false }, { retries: 5, extra: 'x' })\n// =\u003e { retries: 5, verbose: false }  // 'extra' is dropped\n```\n\n\u003cbr\u003e\n\n## 📝 Changelog\n\n📑 Read about the latest changes in the [**CHANGELOG**](https://github.com/igorskyflyer/npm-zitto/blob/main/CHANGELOG.md).\n\n\u003cbr\u003e\n\n## 🪪 License\n\nLicensed under the [**MIT license**](https://github.com/igorskyflyer/npm-zitto/blob/main/LICENSE).\n\n\u003cbr\u003e\n\n## 💖 Support\n\n\u003cdiv align=\"center\"\u003e\n  I work hard for every project, including this one and your support means a lot to me!\n  \u003cbr\u003e\n  Consider buying me a coffee. ☕\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://ko-fi.com/igorskyflyer\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/igorskyflyer/igorskyflyer/main/assets/ko-fi.png\" alt=\"Donate to igorskyflyer\" width=\"180\" height=\"46\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003cem\u003eThank you for supporting my efforts!\u003c/em\u003e 🙏😊\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n## 🧬 Related\n\n[**@igorskyflyer/strip-html**](https://www.npmjs.com/package/@igorskyflyer/strip-html)\n\n\u003e _🥞 Removes HTML code from the given string. Can even extract text-only from the given an HTML string. ✨_\n\n\u003cbr\u003e\n\n[**@igorskyflyer/is-rootdir**](https://www.npmjs.com/package/@igorskyflyer/is-rootdir)\n\n\u003e _🔼 Checks whether the given path is the root of a drive or filesystem. ⛔_\n\n\u003cbr\u003e\n\n[**@igorskyflyer/unc-path**](https://www.npmjs.com/package/@igorskyflyer/unc-path)\n\n\u003e _🥽 Provides ways of parsing UNC paths and checking whether they are valid. 🎱_\n\n\u003cbr\u003e\n\n[**@igorskyflyer/regkeys**](https://www.npmjs.com/package/@igorskyflyer/regkeys)\n\n\u003e _📚 A package for fetching Windows registry keys. 🗝_\n\n\u003cbr\u003e\n\n[**@igorskyflyer/rawelement**](https://www.npmjs.com/package/@igorskyflyer/rawelement)\n\n\u003e _🐯 A utility that lets you manipulate HTML elements, their attributes and innerHTML as strings, on the go and then render the modified HTML. Very useful in SSG projects. 💤_\n\n\u003cbr\u003e\n\n## 👨🏻‍💻 Author\nCreated by **Igor Dimitrijević ([*@igorskyflyer*](https://github.com/igorskyflyer/))**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorskyflyer%2Fnpm-zitto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorskyflyer%2Fnpm-zitto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorskyflyer%2Fnpm-zitto/lists"}