Files
node/doc/api
Victor Antonio Barzana Crespo 857e321baf doc: set encoding to hex before piping hash
I found out that piping a hash to the stdout output would print a
non-hex set of characters, however, the examples are intended to print
out a hex-encoded output so, my proposal here is simple, we set the
encoding to `hex` before piping the response of the hash algo by calling
`hash.setEncoding('hex');`. With this the example is fixed

PR-URL: https://github.com/nodejs/node/pull/35338
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-09-29 11:43:24 -04:00
..
2020-09-01 11:17:55 -04:00
2020-09-21 13:47:42 -04:00
2020-09-21 12:12:32 -04:00
2020-07-16 17:09:04 -04:00
2020-09-21 12:12:32 -04:00
2020-09-21 12:12:32 -04:00
2020-09-24 14:58:34 -04:00
2020-09-29 11:43:18 -04:00
2020-09-17 10:36:40 -04:00
2020-09-15 15:17:31 -04:00
2020-09-15 15:17:31 -04:00
2020-09-24 14:45:42 -04:00
2020-09-21 13:47:42 -04:00
2020-09-21 13:47:42 -04:00
2020-09-21 13:47:42 -04:00
2020-07-16 17:08:55 -04:00
2020-07-16 17:08:55 -04:00
2020-09-07 12:29:29 -04:00
2020-07-16 17:08:55 -04:00