mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 10:26:28 -04:00
heuristic similar to Perl's pp_fttext and its analysis. Tests are available for these file types: - Text formats: .txt, .css, .json, .svg, .js, .lua, .pl, .rst - Binary formats: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf, .woff, .rgb It has also tests for numerous encodings. WWW: https://github.com/audreyr/binaryornot PR: 229436 Submitted by: freebsd_ports@k-worx.org Sponsored by: iXsystems Inc.
12 lines
421 B
Text
12 lines
421 B
Text
Ultra-lightweight library to guess whether a file is binary or text, using a
|
|
heuristic similar to Perl's pp_fttext and its analysis. Tests are available for
|
|
these file types:
|
|
|
|
- Text formats: .txt, .css, .json, .svg, .js, .lua, .pl, .rst
|
|
|
|
- Binary formats: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf,
|
|
.woff, .rgb
|
|
|
|
It has also tests for numerous encodings.
|
|
|
|
WWW: https://github.com/audreyr/binaryornot
|