Skip to content

Commit 89a7260

Browse files
committed
docs: remove em-dashes from Node migration guide
1 parent afe284d commit 89a7260

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

runtime/fundamentals/migrate_from_node.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ oldUrl:
1010

1111
Most Node.js projects run in Deno **with no changes at all**. Deno reads your
1212
`package.json`, installs and resolves the same npm dependencies, and runs both
13-
CommonJS and ES modules so in most cases you point Deno at your existing
13+
CommonJS and ES modules, so in most cases you point Deno at your existing
1414
project and it just works.
1515

1616
You can also adopt Deno incrementally: use it purely as a faster, drop-in
@@ -21,7 +21,7 @@ pick up its built-in toolchain. This guide walks through each step.
2121
## Use Deno as your package manager
2222

2323
Deno is fully compatible with npm and `package.json`, so the easiest place to
24-
start is dependency management without changing how you run your code at all.
24+
start is dependency management, without changing how you run your code at all.
2525
`deno install` reads your existing `package.json`, resolves the same npm
2626
packages, and writes a `node_modules` directory, just like `npm install`:
2727

@@ -30,8 +30,8 @@ cd my-node-app
3030
deno install
3131
```
3232

33-
You can keep running the app with Node from here using Deno only as a faster
34-
package manager or manage dependencies with Deno's built-in commands:
33+
You can keep running the app with Node from here, using Deno only as a faster
34+
package manager, or manage dependencies with Deno's built-in commands:
3535

3636
```sh
3737
deno add npm:express # add a dependency
@@ -56,7 +56,7 @@ deno run main.js
5656
```
5757

5858
If your `package.json` defines scripts, run them with
59-
[`deno task`](/runtime/reference/cli/task/) the equivalent of `npm run`:
59+
[`deno task`](/runtime/reference/cli/task/), the equivalent of `npm run`:
6060

6161
```json title="package.json"
6262
{
@@ -72,16 +72,16 @@ deno task start
7272
```
7373

7474
Most code runs unchanged. The main thing to understand is how Deno decides
75-
whether a file is CommonJS or an ES module, which follows your `package.json`
76-
covered next.
75+
whether a file is CommonJS or an ES module, which follows your `package.json`.
76+
That is covered next.
7777

7878
## CommonJS and ES modules
7979

8080
Deno runs both ES modules and CommonJS, and decides how to treat a file using
8181
the same rules as Node.js:
8282

8383
- A `.cjs` file is **always** CommonJS, and a `.mjs` file is **always** an ES
84-
module — the extension is enough.
84+
module. The extension is enough.
8585
- A `.js`, `.ts`, `.jsx`, or `.tsx` file is loaded as **CommonJS** when the
8686
nearest `package.json` sets `"type": "commonjs"`, and as an **ES module**
8787
otherwise. Deno walks up the directory tree to find that `package.json`, just
@@ -107,10 +107,10 @@ and edge cases.
107107

108108
## Node to Deno Cheatsheet
109109

110-
In a Node project, many of these are separate packages you install and configure
111-
eslint, prettier, jest, ts-node, nodemon, nyc, tsc. In Deno they're the same
112-
binary, with no extra dependencies and no config files to maintain. You can keep
113-
your existing `package.json`, or move configuration into `deno.json`.
110+
In a Node project, many of these are separate packages you install and
111+
configure: eslint, prettier, jest, ts-node, nodemon, nyc, tsc. In Deno they're
112+
the same binary, with no extra dependencies and no config files to maintain. You
113+
can keep your existing `package.json`, or move configuration into `deno.json`.
114114

115115
### Run and watch
116116

@@ -130,7 +130,7 @@ your existing `package.json`, or move configuration into `deno.json`.
130130
| `npm run <script>` | `deno task <script>` |
131131
| `npm explain <pkg>` | `deno why <pkg>` |
132132

133-
### Quality and testing built in, no install or config
133+
### Quality and testing (built in, no install or config)
134134

135135
| Node.js | Deno |
136136
| -------------------------------- | --------------- |
@@ -148,7 +148,7 @@ your existing `package.json`, or move configuration into `deno.json`.
148148
| `typedoc` | `deno doc` |
149149
| `nexe` / `pkg` | `deno compile` |
150150

151-
¹ TypeScript runs directly there's no build step. `deno check` type-checks
151+
¹ TypeScript runs directly: there's no build step. `deno check` type-checks
152152
without emitting, and the compiler is built into the `deno` binary.
153153

154154
### Toolchain

0 commit comments

Comments
 (0)