Skip to content

Commit

Permalink
Node.js example: Use core readline/promises and fs modules from Node.…
Browse files Browse the repository at this point in the history
…js >= 18
  • Loading branch information
terryburton committed Oct 31, 2023
1 parent de02e7c commit 5540c4a
Show file tree
Hide file tree
Showing 5 changed files with 806 additions and 709 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ GMN JavaScript Helper Library
This contains an official JavaScript helper library provided by GS1 for check
character pair generation and verification of a Global Model Number (GMN).

It is compatible with all modern web browsers and Node.js 18 or later.


Artifacts
---------
Expand Down Expand Up @@ -53,7 +55,6 @@ Running the example Node.js application

From this directory:

npm install readline-sync
node exampleuser.node.js

When the example application is run without command line arguments it will
Expand Down
Loading

0 comments on commit 5540c4a

Please sign in to comment.