Files
node/doc/api
Victor Antonio Barzana Crespo c15a227cfd 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-27 07:15:18 -07:00
..
2020-08-28 07:11:09 -07:00
2020-09-20 07:49:06 -07:00
2020-09-17 08:34:47 -07:00
2020-09-17 08:34:47 -07:00
2020-09-18 02:21:48 -07:00
2020-09-17 18:56:17 -07:00
2020-09-24 18:57:59 +00:00
2020-09-15 16:49:55 -04:00
2020-09-15 16:49:55 -04:00
2020-09-14 12:42:08 -07:00
2020-09-23 04:14:04 -07:00
2020-09-20 07:49:06 -07:00
2020-09-20 07:49:06 -07:00
2020-09-20 07:49:06 -07:00
2020-06-26 10:25:14 -07:00
2020-06-26 10:25:14 -07:00
2020-09-05 12:00:45 +00:00
2020-06-30 15:27:43 -07:00