{"id":15060860,"url":"https://github.com/goswinr/str","last_synced_at":"2025-07-11T03:32:20.277Z","repository":{"id":224407710,"uuid":"763109124","full_name":"goswinr/Str","owner":"goswinr","description":"String module and extensions for F#","archived":false,"fork":false,"pushed_at":"2025-06-16T06:49:15.000Z","size":369,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T07:45:20.317Z","etag":null,"topics":["fable","fsharp","string","string-manipulation"],"latest_commit_sha":null,"homepage":"https://goswinr.github.io/Str/","language":"F#","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/goswinr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2024-02-25T15:29:56.000Z","updated_at":"2025-06-16T06:49:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4383d82-de5e-455b-872b-ebc057fc975c","html_url":"https://github.com/goswinr/Str","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"c271b11004cbe2a5993d72e957b3e71babb4d664"},"previous_names":["goswinr/str"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/goswinr/Str","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FStr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FStr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FStr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FStr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goswinr","download_url":"https://codeload.github.com/goswinr/Str/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FStr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264721361,"owners_count":23653926,"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":["fable","fsharp","string","string-manipulation"],"created_at":"2024-09-24T23:05:32.558Z","updated_at":"2025-07-11T03:32:20.264Z","avatar_url":"https://github.com/goswinr.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://raw.githubusercontent.com/goswinr/Str/main/Docs/img/logo128.png)\r\n# Str\r\n\r\n[![Str on nuget.org](https://img.shields.io/nuget/v/Str)](https://www.nuget.org/packages/Str/)\r\n[![Build Status](https://github.com/goswinr/Str/actions/workflows/build.yml/badge.svg)](https://github.com/goswinr/Str/actions/workflows/build.yml)\r\n[![Docs Build Status](https://github.com/goswinr/Str/actions/workflows/docs.yml/badge.svg)](https://github.com/goswinr/Str/actions/workflows/docs.yml)\r\n[![Test Status](https://github.com/goswinr/Str/actions/workflows/test.yml/badge.svg)](https://github.com/goswinr/Str/actions/workflows/test.yml)\r\n[![Check dotnet tools](https://github.com/goswinr/Str/actions/workflows/outdatedDotnetTool.yml/badge.svg)](https://github.com/goswinr/Str/actions/workflows/outdatedDotnetTool.yml)\r\n[![license](https://img.shields.io/github/license/goswinr/Str)](LICENSE.md)\r\n![code size](https://img.shields.io/github/languages/code-size/goswinr/Str.svg)\r\n\r\nStr is an F# extension and module library for `System.String`\r\nIt compiles to Javascript and Typescript with [Fable](https://fable.io/).\r\n\r\n### It Includes:\r\n\r\n- A `Str` module that has all methods from the String type as functions, and more. Adapted and extended from [FSharpX](https://github.com/fsprojects/FSharpx.Extras/blob/master/src/FSharpx.Extras/String.fs)\r\n- A  Computational Expressions `str` that can be used build up strings ( using a StringBuilder internally).\r\n- Extension members on `Str` like `.Get` `.First` `.Last` `.SecondLast` and more.\r\nWith nicer IndexOutOfRangeExceptions that include the bad index and the actual size.\r\n\r\n- Extensive Tests running on both .NET and JS\r\n\r\n### Usage\r\nJust open the module\r\n\r\n```fsharp\r\nopen Str\r\n```\r\n\r\nthis module contains:\r\n- a static class also called `Str`\r\n- a Computational Expressions called `str`\r\n- this will also auto open the extension members on `System.String`\r\n\r\nthen you can do:\r\n\r\n```fsharp\r\nlet hello = // \"Hello, World !!!\"\r\n    str {\r\n        \"Hello\"\r\n        ','\r\n        \" World \"\r\n        for i in 1..3 do\r\n            \"!\"\r\n    }\r\n```\r\n\r\n### Full API Documentation\r\n\r\n[goswinr.github.io/Str](https://goswinr.github.io/Str/reference/str.html)\r\n\r\n\r\n### Tests\r\nAll Tests run in both javascript and dotnet.\r\nSuccessful Fable compilation to typescript is verified too.\r\nGo to the tests folder:\r\n\r\n```bash\r\ncd Tests\r\n```\r\n\r\nFor testing with .NET using Expecto:\r\n\r\n```bash\r\ndotnet run\r\n```\r\n\r\nfor JS testing with Fable.Mocha and TS verification:\r\n\r\n```bash\r\nnpm test\r\n```\r\n\r\n### License\r\n[MIT](https://github.com/goswinr/Str/blob/main/LICENSE.md)\r\n\r\n### Changelog\r\nsee [CHANGELOG.md](https://github.com/goswinr/Str/blob/main/CHANGELOG.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoswinr%2Fstr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoswinr%2Fstr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoswinr%2Fstr/lists"}