{"id":24711948,"url":"https://github.com/borgar/string.format","last_synced_at":"2025-10-09T11:31:03.333Z","repository":{"id":137100569,"uuid":"551546","full_name":"borgar/String.format","owner":"borgar","description":"A full implementation of Python string formatting in JavaScript.","archived":false,"fork":false,"pushed_at":"2010-04-03T01:34:27.000Z","size":89,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-11T00:18:59.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/borgar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-03-07T21:28:20.000Z","updated_at":"2023-03-11T00:21:34.073Z","dependencies_parsed_at":"2023-04-05T07:17:36.941Z","dependency_job_id":null,"html_url":"https://github.com/borgar/String.format","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgar%2FString.format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgar%2FString.format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgar%2FString.format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgar%2FString.format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borgar","download_url":"https://codeload.github.com/borgar/String.format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235813635,"owners_count":19048989,"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":[],"created_at":"2025-01-27T07:16:39.992Z","updated_at":"2025-10-09T11:31:02.988Z","avatar_url":"https://github.com/borgar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Stringformat\n============\n\nProvides a full implementation of Python style string formatting for JavaScript as outlined in the\nPython documentation: http://docs.python.org/library/stdtypes.html#string-formatting-operations\n\nThe function comes attached to String, and you may use it like that:\n\n    String.format( \"I have %d apples, and %d pears.\", [ 13, 10 ] );\n\nIt supports a simple argument:\n\n    String.format( \"I have %d apples.\", 9 );\n\nIf you want to move the function to string prototype where, arguably, it may be more useful:\n\n    String.prototype.format = function () {\n      return String.format( this, arguments );\n    };\n\n    \"I have %d apples, and %d pears..\".format( 9, 12 );\n\nAdditionally, the function support a noConflict method which allows you to unassign it from \nString and into whatever name you want.\n\n    $.format = String.format.noConflict();\n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborgar%2Fstring.format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborgar%2Fstring.format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborgar%2Fstring.format/lists"}