diff options
author | Derek Lewis <DerekNonGeneric@inf.is> | 2020-05-22 09:33:40 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-05-25 20:08:45 +0300 |
commit | 549812a9a0a697dbc41d7669fba649bf37b50b83 (patch) | |
tree | 960c98b652347f337e30c72ada497af9fac1fd69 /doc/api/esm.md | |
parent | e278e3176ac460fc555834cbec2406d3c7334ef6 (diff) |
doc: normalize Bash code block info strings
Prior to this commit, Bash fenced code blocks in Markdown files had
inconsistent info strings. This has been corrected to standardize on
the less-obscure variant.
PR-URL: https://github.com/nodejs/node/pull/33510
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/esm.md')
-rw-r--r-- | doc/api/esm.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md index 8a3d5bdecbd..f8a7595a721 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -94,7 +94,7 @@ until the root of the volume is reached. } ``` -```sh +```bash # In same folder as above package.json node my-app.js # Runs as ES module ``` @@ -184,7 +184,7 @@ Strings passed in as an argument to `--eval` (or `-e`), or piped to `node` via `STDIN`, will be treated as ES modules when the `--input-type=module` flag is set. -```sh +```bash node --input-type=module --eval "import { sep } from 'path'; console.log(sep);" echo "import { sep } from 'path'; console.log(sep);" | node --input-type=module |