aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-02-14 08:55:09 -0300
committerEuAndreh <eu@euandre.org>2024-02-14 08:55:09 -0300
commit5a5b78673f6370c54bcba64aed65549fab532f66 (patch)
treea84a898cbabd8e4c7d10f868d9b10c544e4b3a3d
parentchmod -x share/man/en/man1/numbered.1 (diff)
downloaddotfiles-5a5b78673f6370c54bcba64aed65549fab532f66.tar.gz
dotfiles-5a5b78673f6370c54bcba64aed65549fab532f66.tar.xz
bin/{de,in}flate: Add simple working utilities
-rwxr-xr-xbin/deflate5
-rwxr-xr-xbin/inflate5
2 files changed, 10 insertions, 0 deletions
diff --git a/bin/deflate b/bin/deflate
new file mode 100755
index 0000000..632ea9c
--- /dev/null
+++ b/bin/deflate
@@ -0,0 +1,5 @@
+#!/usr/bin/env node
+
+const zlib = require("zlib");
+
+process.stdin.pipe(zlib.createDeflate()).pipe(process.stdout);
diff --git a/bin/inflate b/bin/inflate
new file mode 100755
index 0000000..ade1701
--- /dev/null
+++ b/bin/inflate
@@ -0,0 +1,5 @@
+#!/usr/bin/env node
+
+const zlib = require("zlib");
+
+process.stdin.pipe(zlib.createInflate()).pipe(process.stdout);