file_alphabetizer

Crates.iofile_alphabetizer
lib.rsfile_alphabetizer
version2.1.3
sourcesrc
created_at2022-05-10 10:20:12.431531
updated_at2022-06-25 06:11:54.228913
descriptionA function that takes a file and alphabetizes it.
homepagehttps://github.com/14kgoldslumcpuwzrd/file_alphabetizer
repositoryhttps://github.com/14kgoldslumcpuwzrd/file_alphabetizer
max_upload_size
id583894
size12,105
(lasagnamassage)

documentation

https://github.com/14kgoldslumcpuwzrd/file_alphabetizer/blob/master/README.md

README

Github CI Crate API

file_alphabetizer

A function that takes a file and alphabetizes it.

Usage

Within a Rust project

  1. Import the library into your Cargo.toml like so:
    [dependencies] 
        file_alphabetizer = "2.1.3"
    
  2. Import the crate and use the alphabetize method, like so. (Currently, path starts at parent directory of code calling it):
        use std::{path::PathBuf};
        use file_alphabetizer;
    
        fn main() {
            let path = PathBuf::from("src/test");
            file_alphabetizer::alphabetize(&path).unwrap();
        }
    

Crate Features

file_alphabetizer sorts non-case-sensitive alphabetical order.

  • Special characters such as brackets are placed after the alphabet
  • Numbers are placed before alphabet

License

file_alphabetizer is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

Commit count: 36

cargo fmt