use-file-stem 0.0.1

Practical file stem utility primitives
Documentation
  • Coverage
  • 90%
    9 out of 10 items documented1 out of 9 items with examples
  • Size
  • Source code size: 10.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 355.16 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-fs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-file-stem

Practical file stem utility primitives for RustUse.

Experimental

use-file-stem is experimental while the use-fs workspace remains below 0.3.0.

Example

use use_file_stem::{append_to_file_stem, file_stem_without_compound_extension};

assert_eq!(file_stem_without_compound_extension("archive.tar.gz").as_deref(), Some("archive"));
assert_eq!(append_to_file_stem("report.txt", "-final"), "report-final.txt");

Scope

  • file-stem extraction
  • compound-extension-aware stem helpers
  • stem replacement and formatting
  • conservative ASCII slug shaping

Non-goals

  • full slugification systems
  • locale-aware casing
  • filesystem I/O

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license