{"id":26695553,"url":"https://github.com/rodribus/better-strings","last_synced_at":"2025-07-31T22:07:46.328Z","repository":{"id":88251307,"uuid":"51321280","full_name":"RodriBus/better-strings","owner":"RodriBus","description":"npm module with string tweaks","archived":false,"fork":false,"pushed_at":"2016-02-11T20:21:36.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T08:55:35.751Z","etag":null,"topics":[],"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/RodriBus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-08T19:32:11.000Z","updated_at":"2016-02-10T14:28:05.000Z","dependencies_parsed_at":"2023-04-30T21:24:01.569Z","dependency_job_id":null,"html_url":"https://github.com/RodriBus/better-strings","commit_stats":null,"previous_names":["itadaki/better-strings"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodriBus%2Fbetter-strings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodriBus%2Fbetter-strings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodriBus%2Fbetter-strings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodriBus%2Fbetter-strings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RodriBus","download_url":"https://codeload.github.com/RodriBus/better-strings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245721190,"owners_count":20661537,"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-03-26T19:27:42.699Z","updated_at":"2025-03-26T19:27:46.167Z","avatar_url":"https://github.com/RodriBus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# better-strings\nThis module provides `String.format` C#-like function extending `String` object.\n\n##Install\nTo install the module\n```sh\n$ npm install better-strings\n```\n\n##How to use\nThere are two ways of using this module.\n\n###Using as string-object method\n**String.format($0 [, $1, ..., $N])**\n\n__Only__ takes *strings* and *numbers* as arguments.\n```javascript\n//Requiring the module enables the tweak\nrequire('better-strings');\n\nvar result = 'Hello {0}!'.format('world');\n\nconsole.log(result);\n//produces 'Hello world!' output\n```\n\n###Using as module method\n**betterString.format(baseString, $0 [, $1, ..., $N])**\n\n__Only__ takes *strings* as firts argument, *strings* and *numbers* for the rest of them.\n```javascript\n//Requiring the module enables the string method anyway\nvar betterString = require('better-strings');\n\nvar result = betterString.format('Hello {0}!', 'world');\n\nconsole.log(result);\n//produces 'Hello world!' output\n```\n\n##Test\nIf you want to run the test, get the repository and run\n```sh\n$ npm install\n$ npm test\n```\n\n##Why yet another 'string module'?\nI have created this module as an exercise to learn about javascript, node, npm, gulp, unit test, and other dev-things involved in current development proccesses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodribus%2Fbetter-strings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodribus%2Fbetter-strings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodribus%2Fbetter-strings/lists"}