{"id":15889078,"url":"https://github.com/arshadkazmi42/strmat","last_synced_at":"2025-08-14T06:31:59.902Z","repository":{"id":44797154,"uuid":"187687049","full_name":"arshadkazmi42/strmat","owner":"arshadkazmi42","description":"Node plugin for string formatting like python","archived":false,"fork":false,"pushed_at":"2022-10-16T13:14:56.000Z","size":155,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T16:25:27.457Z","etag":null,"topics":["dynamic","dynamic-string-values","formatter","nodejs","python-string","string","values"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/arshadkazmi42.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":null},"funding":{"github":"arshadkazmi42"}},"created_at":"2019-05-20T17:42:35.000Z","updated_at":"2022-10-16T13:16:58.000Z","dependencies_parsed_at":"2022-09-02T15:31:17.312Z","dependency_job_id":null,"html_url":"https://github.com/arshadkazmi42/strmat","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/arshadkazmi42/strmat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fstrmat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fstrmat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fstrmat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fstrmat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arshadkazmi42","download_url":"https://codeload.github.com/arshadkazmi42/strmat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fstrmat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270377433,"owners_count":24573409,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"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":["dynamic","dynamic-string-values","formatter","nodejs","python-string","string","values"],"created_at":"2024-10-06T06:41:09.280Z","updated_at":"2025-08-14T06:31:59.604Z","avatar_url":"https://github.com/arshadkazmi42.png","language":"JavaScript","funding_links":["https://github.com/sponsors/arshadkazmi42"],"categories":[],"sub_categories":[],"readme":"# strmat\n\n[![Build](https://github.com/arshadkazmi42/strmat/actions/workflows/nodejs.yml/badge.svg)](https://github.com/arshadkazmi42/strmat/actions/workflows/nodejs.yml)\n[![NPM Version](https://img.shields.io/npm/v/strmat.svg)](https://www.npmjs.com/package/strmat)\n[![NPM Downloads](https://img.shields.io/npm/dt/strmat.svg)](https://www.npmjs.com/package/strmat)\n[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/strmat.svg)](https://github.com/arshadkazmi42/strmat)\n[![LICENSE](https://img.shields.io/npm/l/strmat.svg)](https://github.com/arshadkazmi42/strmat/blob/master/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/strmat.svg)](https://github.com/arshadkazmi42/strmat/graphs/contributors)\n[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/strmat.svg)](https://github.com/arshadkazmi42/strmat/commits/master)\n\nNode plugin for string formatting with dynamic values like python\n\n## Install\n\n```\nnpm install strmat\n```\n\nor\n\n```\nyarn add strmat\n```\n\n## Usage\n\n```js\nconst Strmat = require('strmat');\n\nconst string = 'This will {0} using dynamic {1}';\nconst values = ['format', 'queries'];\nconst formattedString = Strmat.format(string, values);\n\n// Output:\n// This will format using dyamic queries\n\n\nconst string = 'This will {firstKey} using dynamic {secondKey}';\nconst values = {\n  'firstKey': 'format',\n  'secondKey': 'queries'\n};\nconst formattedString = Strmat.format(string, values);\n\n// Output:\n// This will format using dyamic queries\n\n\nconst string = 'This will not use dynamic values';\nconst values = {};\nconst formattedString = Strmat.format(string, values);\n\n// Output\n// This will not use dynamic values\n\n\nconst string = 'This will not use dynamic values';\nconst values = [];\nconst formattedString = Strmat.format(string, values);\n\n// Output\n// This will not use dynamic values\n\n\nconst string = undefined;\nconst values = ['format'];\nconst formattedString = Strmat.format(string, values);\n\n// Output\n// undefined\n```\n\n## Contributing\n\nInterested in contributing to this project?\nYou can log any issues or suggestion related to this library [here](https://github.com/arshadkazmi42/strmat/issues/new).\n\nRead our contributing [guide](CONTRIBUTING.md) to get started with contributing to the codebase.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshadkazmi42%2Fstrmat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farshadkazmi42%2Fstrmat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshadkazmi42%2Fstrmat/lists"}