-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): moved the Node.js example to its own page
- Loading branch information
1 parent
d804e46
commit 2075d2c
Showing
5 changed files
with
21 additions
and
36 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: Using Harper in Node.js | ||
--- | ||
|
||
Harper.js can run in Node.js. | ||
There is just one consideration: as described in [more detailed here](./linting), we cannot use the `WorkerLinter`. | ||
That means we must use the `LocalLinter`. | ||
|
||
Additionally, since `harper.js` is an ECMAScript module, it must be imported in a relatively recent version of Node.js. | ||
|
||
## Example Code | ||
|
||
The example below can be found in [the Harper monorepo.](https://github.com/Automattic/harper/tree/master/packages/harper.js/examples/commonjs-simple) | ||
|
||
@code(../../../../../../harper.js/examples/commonjs-simple/index.js) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters