The sttr command allows you to quickly run various text transformation
operations:
- ascii85, base32, base64, base64url, and base85 encode/decode
- HTML encode/decode
- URL encode/decode
- rot13 encode
- generate bcrypt, md5, sha1, sha256, or sha512 checksum
- transform to camel-, kebab-, slug-, snake-, title-case
- transform to lower or upper case
- shuffle, sort, or unique lines
- reverse text character by character or line by line
- remove spaces or new-line characters
- count characters, words, or lines
- convert a #hex color code to RGB
- hex encode/decode
- format text as JSON
- convert between JSON and MSGPACK or YAML text
- convert markdown to HTML
- extract emails, IP numbers, or URLs from text
- pad numbers with zeroes
textproc/sttr: update to version 0.2.30
This updates allows to generate QR codes in a terminal session.
Further improvements since version 0.2.28:
- New processors for Adler32, BLAKE2b, BLAKE2s, CRC32, CrockfordBase32,
and Base58.
- Support for files of more than 1GB has been improved.
many: Unpin Go ports
Unpin Go ports that I missed the first time around because the version
number was not the first argument.
Fixes: 75d873b56a74 ("many: Unpin Go ports")
textproc/sttr: fix SIZE of go.mod in distinfo
The size written into distinfo was 11 instead of the correct value of
2048. Repeated invocations of "make makesum" did not change that value,
therefore I have manually set it to the actual size of that file.
Reported by: olgeni
textproc/sttr: Fix warning messages with `make describe`
% pwd
/usr/ports/textproc/sttr
% make describe
make: "/usr/ports/Mk/bsd.sites.mk" line 528: warning: duplicate script for
target "git-clone-DEFAULT" ignored
make: "/usr/ports/Mk/bsd.sites.mk" line 366: warning: using previous script for
"git-clone-DEFAULT" defined here
make: "/usr/ports/Mk/bsd.sites.mk" line 529: warning: duplicate script for
target "git-clone-DEFAULT" ignored
make: "/usr/ports/Mk/bsd.sites.mk" line 366: warning: using previous script for
"git-clone-DEFAULT" defined here
sttr-0.2.21|/usr/ports/textproc/sttr|/usr/local|Quickly run various
transformations on
strings|/usr/ports/textproc/sttr/pkg-descr|se@FreeBSD.org|textproc||||/usr/ports/lang/go121||https://github.com/abhimanyu003/sttr
%
PR: 279567
Approved by: maintainer timeout