Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Add the string category from lodash into this package #17

Open
3 tasks done
ImBIOS opened this issue Sep 7, 2023 · 0 comments
Open
3 tasks done

[FEAT]: Add the string category from lodash into this package #17

ImBIOS opened this issue Sep 7, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@ImBIOS
Copy link
Owner

ImBIOS commented Sep 7, 2023

Clear and concise description of the problem

The current implementation of Lorust lacks utility functions related to string manipulation. This omission limits the library's usability for string processing tasks, common in many software projects.

Suggested solution

  1. Create a new module named string under the src directory.
  2. Implement the most frequently used lodash string utility functions within this module, such as:
    • camelCase
    • capitalize
    • endsWith
    • startsWith
    • trim
    • toLower
    • toUpper
  3. Add comprehensive unit tests for each function to ensure correctness.
  4. Update the README file to indicate that the string category is now supported, and perhaps include a few code examples.

Code Example:

// src/string/mod.rs
pub fn camel_case(s: &str) -> String {
    // implementation here
}

pub fn capitalize(s: &str) -> String {
    // implementation here
}
// ... more functions

Alternative

A phased approach could be adopted, where the functions are implemented and released in smaller groups. This would allow for quicker initial releases and can be prioritized based on community feedback or the most common use cases.

Additional context

Adding a string module with utility functions similar to those in lodash's string category would enhance Lorust's overall functionality. This addition would make the library more appealing to Rust developers who have tasks related to string manipulation and may result in increased adoption of Lorust.

Validations

@ImBIOS ImBIOS added enhancement New feature or request good first issue Good for newcomers labels Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant