{"id":20614749,"url":"https://github.com/dashed/between","last_synced_at":"2026-02-26T06:43:15.149Z","repository":{"id":57506211,"uuid":"415419778","full_name":"dashed/between","owner":"dashed","description":"Generate strings that can sort between two other strings.","archived":false,"fork":false,"pushed_at":"2024-11-10T11:17:03.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-26T15:27:06.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dashed.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-10-09T20:54:06.000Z","updated_at":"2024-11-10T11:17:07.000Z","dependencies_parsed_at":"2024-03-17T17:26:20.140Z","dependency_job_id":"a3833d02-6716-44eb-b9ba-20bf0b7046d1","html_url":"https://github.com/dashed/between","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"3d23277fee02630c9bbc5337327eb17074ad6bed"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dashed/between","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Fbetween","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Fbetween/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Fbetween/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Fbetween/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashed","download_url":"https://codeload.github.com/dashed/between/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Fbetween/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29850617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"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":[],"created_at":"2024-11-16T11:13:30.731Z","updated_at":"2026-02-26T06:43:15.134Z","avatar_url":"https://github.com/dashed.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# between\n\n\u003e Generate strings that can sort between two other strings.\n\n`between` is a Rust port of the [`between2`](https://github.com/dashed/between2) npm package.\n\n## Installation\n\nhttps://crates.io/crates/between\n\n```sh\ncargo add between\n```\n\n## API\n\n### `Between::new(chars: Vec\u003cchar\u003e) -\u003e Self`\n\nInitializes `Between` with a custom set of characters.\n\n```rust\nuse between::Between;\n\nlet between = Between::new(vec!['a', 'b', 'c', 'd', 'e']);\n```\n\nBy default, `Between` uses the following characters to generate strings:\n\n```\n!0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~\n```\n\n### `between.between(a: String, b: String) -\u003e Option\u003cString\u003e`\n\nGenerates a string that lexicographically sorts between `a` and `b`.\n\n- `a` must be lexicographically less than `b`. In other words, `a \u003c b`.\n- `a` and `b` can be any string that does not end in the lowest character. this is like how there is only one number between 0 and 1 that ends in a \"0\".\n\n```rust\nlet tween = between.between(String::from(\"a\"), String::from(\"b\"));\n```\n\n`tween` is an `Option\u003cString\u003e` that, if `Some`, contains a string that will sort between 'a' and 'b'.\n\n### `between.after(a: String) -\u003e Option\u003cString\u003e`\n\nGenerate a string that sorts between `a` and the highest character (`between.high()`).\n\nThe string `a` cannot begin with the highest character.\n\n### `between.before(a: String) -\u003e Option\u003cString\u003e`\n\nGenerate a string that sorts between the lowest character (`between.low()`) and `a`.\n\n## Credit\n\nAll credit to [@dominictarr](https://github.com/dominictarr) for creating the original [`between`](https://github.com/dominictarr/between) module, which inspired this Rust port.\n\n# License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashed%2Fbetween","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashed%2Fbetween","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashed%2Fbetween/lists"}