Skip to content

Commit

Permalink
docs(readme): update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Nov 29, 2023
1 parent 45e8dcb commit 26f5fcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ const { UnRTF } = require("node-unrtf");

### Async Await

Example of an `async` `await` call to convert an RTF file to HTML, and then output the result to console:
Example of an `async` `await` call to convert an RTF file to HTML in an ESM environment:

```js
const { UnRTF } = require("node-unrtf");
import { UnRTF } from "node-unrtf";

const file = "test_document.rtf";
const unRtf = new UnRTF();
Expand All @@ -74,7 +74,7 @@ console.log(res);

### Promise chaining

Example of calling unRTF.convert with a promise chain:
Example of calling unRTF.convert with a promise chain in a CJS environment:

```js
const { UnRTF } = require("node-unrtf");
Expand Down

0 comments on commit 26f5fcb

Please sign in to comment.