From 3a405990fe23e8bef246c44625aa172b676fd5fe Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Mon, 18 Mar 2019 16:24:16 -0400 Subject: [PATCH] fixup: s/type/entry-type doc --- doc/api/cli.md | 24 +++++++++++++----------- doc/api/errors.md | 33 +++++++++++++-------------------- doc/api/esm.md | 22 +++++++++++----------- 3 files changed, 37 insertions(+), 42 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 49ee99ce8a..ad7b65e90a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -131,6 +131,19 @@ conjunction with native stack and other runtime environment data. added: v6.0.0 --> +### `--entry-type=type` + + +Used with `--experimental-modules`, this configures Node.js to interpret the +initial entry point as CommonJS or as an ES module. + +Valid values are `"commonjs"` and `"module"`. The default is to infer from +the file extension and the `"type"` field in the nearest parent `package.json`. + +Works for executing a file as well as `--eval`, `--print`, `STDIN`. + Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with `./configure --openssl-fips`.) @@ -556,17 +569,6 @@ added: v2.4.0 Track heap object allocations for heap snapshots. -### `--type=type` - -Used with `--experimental-modules`, this configures Node.js to interpret the -initial entry point as CommonJS or as an ES module. - -Valid values are `"commonjs"` and `"module"`. The default is to infer from -the file extension and the `"type"` field in the nearest parent `package.json`. - -Works for executing a file as well as `--eval`, `--print`, `STDIN`. - - ### `--use-bundled-ca`, `--use-openssl-ca`