From 1ea1c66b24d88b04750b6d5596b32915d4579051 Mon Sep 17 00:00:00 2001
From: Andrew Herron <thespyder@programmer.net>
Date: Tue, 18 Jun 2024 11:03:57 +1000
Subject: [PATCH 1/2] Add JS build workflow, constrained to the 'javascript'
 folder

---
 .github/workflows/javascript.yml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 .github/workflows/javascript.yml

diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml
new file mode 100644
index 0000000..4fcfd8a
--- /dev/null
+++ b/.github/workflows/javascript.yml
@@ -0,0 +1,32 @@
+name: javascript
+
+on:
+  push:
+    paths:
+      - .github/workflows/javascript.yml
+      - javascript/**
+  pull_request:
+    branches:
+      - main
+    paths:
+      - .github/workflows/javascript.yml
+      - javascript/**
+
+defaults:
+  run:
+    working-directory: javascript
+
+jobs:
+  test:
+    name: Test
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: actions/setup-node@v4
+        with:
+          node-version: lts/*
+      ## Cache not needed because we have no dependencies.
+      ## If we need it, here's how
+      #          cache: npm
+      #          cache-dependency-path: 'javascript/package-lock.json'
+      - run: npm test

From 7f03d481b80b6651a02ba9c647e19c2e325be059 Mon Sep 17 00:00:00 2001
From: Andrew Herron <thespyder@programmer.net>
Date: Fri, 28 Jun 2024 10:26:25 +1000
Subject: [PATCH 2/2] Add a simple readme for the NPM package

---
 javascript/readme.md | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 javascript/readme.md

diff --git a/javascript/readme.md b/javascript/readme.md
new file mode 100644
index 0000000..d5478e7
--- /dev/null
+++ b/javascript/readme.md
@@ -0,0 +1,3 @@
+The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text.
+
+This is the JavaScript implementation of a library available in many languages, for more information and API documentation please refer to the [project readme](https://github.com/dmsnell/diff-match-patch).
\ No newline at end of file