From d99ba33930f0c587258fe296a531c16c0ea96f0a Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 4 Jul 2026 13:08:54 +0100 Subject: [PATCH 1/2] docs(readme): add strict directive to cjs examples --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ccf7b78..3018918 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,8 @@ console.log(res); Example of calling unRTF.convert with a promise chain in a CJS environment: ```js +"use strict"; + const { UnRTF } = require("node-unrtf"); const file = "test_document.rtf"; From 3a698037ce881c07809811bc2b36561717de6538 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 5 Jul 2026 14:22:48 +0100 Subject: [PATCH 2/2] docs(readme): correct terminology --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3018918..90a5edc 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Please refer to the [JSDoc comments in the source code](./src/index.js) or the [ ### Async Await -Example of an `async` `await` call to convert an RTF file to HTML in an ESM environment: +Example of an `async` `await` call to convert an RTF file to HTML using ESM syntax: ```js import { UnRTF } from "node-unrtf"; @@ -69,7 +69,7 @@ console.log(res); ### Promise chaining -Example of calling unRTF.convert with a promise chain in a CJS environment: +Example of calling unRTF.convert with a promise chain using CJS syntax: ```js "use strict";