{"id":18396733,"url":"https://github.com/igorskyflyer/npm-zing","last_synced_at":"2026-03-09T12:03:17.360Z","repository":{"id":57306602,"uuid":"526028877","full_name":"igorskyflyer/npm-zing","owner":"igorskyflyer","description":"🐌 Zing is a C# style String formatter for JavaScript that empowers Strings with positional arguments - composite formatting. 🚀","archived":false,"fork":false,"pushed_at":"2024-07-10T22:56:05.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-07T20:48:47.202Z","etag":null,"topics":["back-end","biome","c-style","cs","csharp","formatter","igorskyflyer","javascript","js","npm","print","printf","string","system","utility","vitest","zing"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@igor.dvlpr/zing","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":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"igorskyflyer"}},"created_at":"2022-08-18T02:40:30.000Z","updated_at":"2024-07-10T22:56:08.000Z","dependencies_parsed_at":"2024-07-08T00:45:20.648Z","dependency_job_id":null,"html_url":"https://github.com/igorskyflyer/npm-zing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-zing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igorskyflyer","download_url":"https://codeload.github.com/igorskyflyer/npm-zing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242461386,"owners_count":20131982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","biome","c-style","cs","csharp","formatter","igorskyflyer","javascript","js","npm","print","printf","string","system","utility","vitest","zing"],"created_at":"2024-11-06T02:14:41.320Z","updated_at":"2026-03-09T12:03:17.355Z","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-zing/main/media/zing.png\" alt=\"Icon of Zing\" width=\"256\" height=\"256\"\u003e\n  \u003ch1\u003eZing\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n\u003ch4 align=\"center\"\u003e\n  🐌 Zing is a C# style String formatter for JavaScript that empowers Strings with positional arguments - composite formatting. 🚀\n\u003c/h4\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 📃 Table of Contents\n\n- [Features](#-features)\n- [Usage](#-usage)\n- [API](#-api)\n- [Changelog](#-changelog)\n- [Support](#-support)\n- [License](#-license)\n- [Related](#-related)\n- [Author](#-author)\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 🤖 Features\n\n - ⚡ Quick formatting - Drop in `{0}`, `{1}` placeholders and swap them instantly\n - 🛠 C#-style syntax - Familiar composite formatting for .NET devs in JS/TS\n - 🎯 Positional arguments - Control exactly where each value lands\n - 🛡 Safe fallback - Leaves unknown placeholders untouched\n - 🧩 Lightweight utility - No dependencies, minimal footprint\n - 🔄 Multi-replace - Handles all matching placeholders in one pass\n - 📜 TypeScript-ready - Strong typing for cleaner code\n - 🌍 Cross-platform - Works in browser and Node environments\n\n\u003cbr\u003e\n\n\u003e ℹ️ **NOTE**\n\u003e\n\u003e More information about [composite formatting](https://docs.microsoft.com/en-us/dotnet/standard/base-types/composite-formatting).\n\u003e\n\n\u003cbr\u003e\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/zing\n```\n\n```bash\nyarn add @igorskyflyer/zing\n```\n\n```bash\nnpm i @igorskyflyer/zing\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 🤹🏼 API\n\n```ts\nzing(value: string, ...args: any[]): string\n```\n\nFormats the provided string in a C# style format, i.e. adds the ability to use positional arguments, like seen with `String.Format` in C#.\n\u003cbr\u003e\n\n`value: string` =\u003e The string to process that support positional parameters, i.e. `zing('Hello {0} {1}', 'Igor', 'Dimitrijević')` would output `Hello Igor Dimitrijević`.\n\nThe returned value is always a `string`.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 📝 Changelog\n\n📑 The changelog is available here, [CHANGELOG.md](https://github.com/igorskyflyer/npm-zing/blob/main/CHANGELOG.md).\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 🪪 License\n\nLicensed under the MIT license which is available here, [MIT license](https://github.com/igorskyflyer/npm-zing/blob/main/LICENSE).\n\n\u003cbr\u003e\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\u003cbr\u003e\n\n## 🧬 Related\n\n[@igorskyflyer/recursive-readdir](https://www.npmjs.com/package/@igorskyflyer/recursive-readdir)\n\n\u003e _📖 Provides recursive readdir() and readdirSync() functions. 📁_\n\n\u003cbr\u003e\n\n[@igorskyflyer/regkeys](https://www.npmjs.com/package/@igorskyflyer/regkeys)\n\n\u003e _📚 An npm package for fetching Windows registry keys. 🗝_\n\n\u003cbr\u003e\n\n[@igorskyflyer/jmap](https://www.npmjs.com/package/@igorskyflyer/jmap)\n\n\u003e _🕶️ Reads a JSON file into a Map. 🌻_\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/scrollend-polyfill](https://www.npmjs.com/package/@igorskyflyer/scrollend-polyfill)\n\n\u003e _🛴 A performant and light (\u003c 1KB) JavaScript polyfill for the scrollend Event. ⛸️_\n\n\n\u003cbr\u003e\n\u003cbr\u003e\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-zing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorskyflyer%2Fnpm-zing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorskyflyer%2Fnpm-zing/lists"}