diff options
author | Nikolai Vavilov <vvnicholas@gmail.com> | 2020-04-20 21:30:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 14:30:52 -0400 |
commit | f72f045de586a7d0e428b77f6a3e381178cc6674 (patch) | |
tree | a6ceaa9e09a40e6eab61fe2885940edd702a7315 /std/node/README.md | |
parent | 6e5f3453f806d6007b8f724837b5dd7d9eb17be9 (diff) |
std/node: require_ -> require (#4828)
Diffstat (limited to 'std/node/README.md')
-rw-r--r-- | std/node/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/node/README.md b/std/node/README.md index 1c561be4f..bbd168825 100644 --- a/std/node/README.md +++ b/std/node/README.md @@ -74,11 +74,11 @@ modules. ```ts import { createRequire } from "https://deno.land/std/node/module.ts"; -const require_ = createRequire(import.meta.url); +const require = createRequire(import.meta.url); // Loads native module polyfill. -const path = require_("path"); +const path = require("path"); // Loads extensionless module. -const cjsModule = require_("./my_mod"); +const cjsModule = require("./my_mod"); // Visits node_modules. -const leftPad = require_("left-pad"); +const leftPad = require("left-pad"); ``` |