yes-d 0.1.0
classic Unix 'yes' command - D port
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Yes-D: A Memory-Safe,yes
Command in D
A modern, memory-safe implementation of Unix yes
command in D. Outputs a string (default: "y") repeatedly to stdout until terminated. Built with D's @safe
for memory safety and buffered I/O for efficiency.
Features
- Memory Safety: Prevents buffer overflows and undefined behavior via D's
@safe
- Buffered I/O: Uses 64KB buffer for efficient output
- Simple Interface: Matches standard Unix
yes
command behavior - Cross-Platform: Works on any D compiler-supported platform
Installation
Prerequisites
- A D compiler.
- A working D development environment (e.g.,
dub
,redub
or manual compilation).
Build from Source
- Clone the repository:
git clone https://github.com/kassane/yes-d
cd yes-d
dub build -b release
- The compiled binary will be located in the
bin/
directory.
Usage
./bin/yes-d [STRING...]
STRING
: The string(s) to output. Multiple arguments will be joined with spaces. If not provided, defaults to "y"
Bench test
[yes app] | dd bs=8k count=819200 of=/dev/null
References
- uutils/coreutils-rs/yes
- mattn/zig-yes, based in
uutils/coreutils-rs
- mattn/go-yes, based in
uutils/coreutils-rs
- 0.1.0 released 32 days ago
- kassane/yes-d
- BSD 3-clause
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.0 2025-May-29 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
0 downloads total
-
- Score:
- 0.0
- Short URL:
- yes-d.dub.pm