Small utility for wrapping text lines to a certain length.
Find a file
Matthieu Jolimaitre ee435c2e72 Added README file and lwrap functionality
Created new README file providing usage and build instructions for the lwrap
utility. Implemented text line wrapping to a certain length.
2025-06-26 14:17:50 +02:00
src Initial commit: LWP (Line Wrapping Program) with deno compile and formatting 2025-06-26 14:07:21 +02:00
test Initial commit: LWP (Line Wrapping Program) with deno compile and formatting 2025-06-26 14:07:21 +02:00
.gitignore Initial commit: LWP (Line Wrapping Program) with deno compile and formatting 2025-06-26 14:07:21 +02:00
build Initial commit: LWP (Line Wrapping Program) with deno compile and formatting 2025-06-26 14:07:21 +02:00
deno.json Initial commit: LWP (Line Wrapping Program) with deno compile and formatting 2025-06-26 14:07:21 +02:00
README.md Added README file and lwrap functionality 2025-06-26 14:17:50 +02:00

lwrap

Small utility for wrapping text lines to a certain length.

Usage

Input is provided through stdin, output is written to stdout.

$ cat /proc/version
# Linux version 6.15.3-zen1-1-zen (linux-zen@archlinux) (gcc (GCC) 15.1.1 20250425, GNU ld (GNU Binutils) 2.44.0) #1 ZEN SMP PREEMPT_DYNAMIC Thu, 19 Jun 2025 14:41:01 +0000

$ cat /proc/version | lwrap
# Linux version 6.15.3-zen1-1-zen (linux-zen@archlinux) (gcc (GCC) 15.1.1
# 20250425, GNU ld (GNU Binutils) 2.44.0) #1 ZEN SMP PREEMPT_DYNAMIC Thu, 19 Jun
# 2025 14:41:01 +0000

Build

This project is available both as a 1-file 0-dependencies deno script, or as a packaged executable. This section explains how to build the executable.

Dependencies

  • deno This is a typescript on deno project, you need the deno toolchain. Download it with your package manager or through the installation script at https://deno.com