Skip to content

Instantly share code, notes, and snippets.

@dperuo
Created May 23, 2024 13:14
Show Gist options
  • Save dperuo/aec8eda05a598fa790904898138dd4b7 to your computer and use it in GitHub Desktop.
Save dperuo/aec8eda05a598fa790904898138dd4b7 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
import { createHash } from 'node:crypto';
import { stdin, stdout } from 'node:process';
stdin.pipe(createHash('sha256')).setEncoding('hex').pipe(stdout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment