fnew

Crates.iofnew
lib.rsfnew
version1.0.1
sourcesrc
created_at2020-03-15 14:36:45.349742
updated_at2020-03-15 14:49:53.835098
descriptionA Unicode-aware line-oriented drop-in replacement for coreutils' fold.
homepage
repositoryhttps://github.com/Koxiaet/fnew
max_upload_size
id218865
size10,828
(Kestrer)

documentation

README

Fnew

Features and Limitations

  • Counts in Unicode graphemes by default.
  • Can count in bytes or characters.
  • Exact same syntax as GNU Fold.
  • Only works with UTF-8 input.
  • Line oriented. While GNU Fold buffers the entire input before folding it all at once, fnew takes in and prints its input line by line. This makes it suitable to be piped into from long running commands.

Usage

USAGE:
    fnew [FLAGS] [OPTIONS] [file]

FLAGS:
    -b, --bytes      Count bytes not graphemes. Can cause invalid Unicode sequences.
    -c, --chars      Count unicode characters not graphemes.
    -h, --help       Prints help information
    -s, --spaces     Split at whitespaces when possible.
    -V, --version    Prints version information

OPTIONS:
    -w, --width <width>    Width to fold at. [default: 80]

ARGS:
    <file>    File to read from, - is stdin. [default: -]
Commit count: 6

cargo fmt