Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / .esmrc.json
Schema registry

.esmrc.json

Configuration files for the esm module/package in Node.js

.esmrc.esmrc.json

Check your file against this schema

Opens the validator with this schema already loaded. Paste your .esmrc and it validates in your browser — nothing is uploaded.

Validate a .esmrc → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
cjsoneOfA boolean or object for toggling CJS features in ESM
default: true
mainFieldsarray<string>An array of fields checked when importing a package
default: ["main"]
modestringA string describing the mode in which to detect ESM module files
default: "auto"
awaitbooleanA boolean for top-level await in modules without ESM exports. (Node 10+)
default: false
forcebooleanA boolean to apply these options to all module loads
default: false
wasmbooleanA boolean for WebAssembly module support. (Node 8+)
default: false
cacheboolean[dev] A boolean for toggling cache creation or a cache directory path
default: true
sourceMapboolean[dev] A boolean for including inline source maps
default: false

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$commentJSON Schema Core, draft 2020-12§8.3 — Comments With "$comment"
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
constJSON Schema Validation, draft 2020-12§6.1.3 — "const"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
oneOfJSON Schema Core, draft 2020-12§10.2.1.3 — "oneOf"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"
uniqueItemsJSON Schema Validation, draft 2020-12§6.4.3 — "uniqueItems"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas