diff --git a/doc/api/esm.md b/doc/api/esm.md index 06eae239c3abcd..59e55b0e3bff0a 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -974,7 +974,7 @@ async function getPackageType(url) { // Compose a file path to a package.json in the same directory, // which may or may not exist const packagePath = resolvePath(dir, 'package.json'); - // Try to read the possibly non-existant package.json + // Try to read the possibly nonexistent package.json const type = await readFile(packagePath, { encoding: 'utf8' }) .then((filestring) => JSON.parse(filestring).type) .catch((err) => {