{"id":26134034,"url":"https://github.com/rodgeraraujo/reddish","last_synced_at":"2025-07-18T12:32:49.420Z","repository":{"id":62445083,"uuid":"550944579","full_name":"rodgeraraujo/reddish","owner":"rodgeraraujo","description":"A Rust utility library, making easier by taking the hassle out of working. :octocat:","archived":false,"fork":false,"pushed_at":"2022-10-24T13:49:17.000Z","size":44,"stargazers_count":11,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T21:35:45.784Z","etag":null,"topics":["library","reddish","rust","utilities","utility","utility-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/rodgeraraujo.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":"2022-10-13T15:23:04.000Z","updated_at":"2024-02-13T14:28:00.000Z","dependencies_parsed_at":"2022-11-01T22:31:56.801Z","dependency_job_id":null,"html_url":"https://github.com/rodgeraraujo/reddish","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rodgeraraujo/reddish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Freddish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Freddish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Freddish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Freddish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodgeraraujo","download_url":"https://codeload.github.com/rodgeraraujo/reddish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodgeraraujo%2Freddish/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265760404,"owners_count":23824021,"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":["library","reddish","rust","utilities","utility","utility-library"],"created_at":"2025-03-10T23:03:50.744Z","updated_at":"2025-07-18T12:32:49.400Z","avatar_url":"https://github.com/rodgeraraujo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reddish\n\n[![Crates.io](https://img.shields.io/crates/v/reddish.svg)](https://crates.io/crates/reddish)\n[![Documentation](https://docs.rs/reddish/badge.svg)](https://docs.rs/reddish/)\n[![License](https://img.shields.io/crates/l/octavo.svg)](LICENSE)\n\n![reddish library logo](./docs/assets/reddish.png)\n\nA Rust utility library, making easier by taking the hassle out of working.\n\n---\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nreddish = \"0.2.0\"\n```\n\n## Example\n\n```rust\nextern crate reddish;\nuse reddish::*;\n\nfn main() {\n  println!(\"{}\", snake_case(\"fooBarBaz\"));\n  // foo_bar_baz\n}\n```\n\n## Features\n\n- [x] “String” Methods\n  - `.camel_case([string=''])`: Converts `string` to camel case.\n  - `.capitalize([string=''])`: Capitalize first char of `string`.\n  - `.kebab_case([string=''])`: Converts `string` to kebab case.\n  - `.snake_case([string=''])`: Converts `string` to snake case.\n  - `.title_case([string=''])`: Converts `string` to title case.\n  - `.pad([string=''], pad_length, pad_char=' ')`: Adds padding of length `pad_length` to both ends of `string` using optional `pad_char`, if no `pad_char` is supplied the `pad_char` defaults to ' '\n  - `.pad_end([string=''], pad_length, pad_char=' ')`: Adds padding of length `pad_length` to the end of `string` using optional `pad_char`, if no `pad_char` is supplied the `pad_char` defaults to ' '\n  - `.truncate([string=''], truncate_length)`: Truncates `string` to `truncate_length`.\n\n- [x] “Array” Methods\n  - `.concat(vec: Vec\u003cT\u003e, values: Vec\u003cT\u003e)`: Creates a new array concatenating an array with any additional array values.\n  - `.difference(vec: Vec\u003cT\u003e, values: Vec\u003cT\u003e)`: Creates an array of values not included in the other given arrays using the same for equality comparisons.\n  - `.find_index(vec: Vec\u003cT\u003e, find: F)`: Returns the index of the first found element.\n  - `.find_last_index(vec: Vec\u003cT\u003e, find: F)`: Iterates over elements of collection from right to left, and returns the index of the found element.\n  - `.join(vec: Vec\u003cT\u003e, sep: \u0026str)`: Converts all elements in array into a string separated by separator.\n\n- [ ] “Object” Methods\n  - TODO:\n\n- [ ] “Collection” Methods\n  - TODO:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodgeraraujo%2Freddish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodgeraraujo%2Freddish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodgeraraujo%2Freddish/lists"}