guix_mirror_bot pushed a commit to branch master
in repository guix.

commit b02a4eefbd650adf14327886bc72d51ebf740c07
Author: Daniel Khodabakhsh <[email protected]>
AuthorDate: Tue Jun 24 08:42:55 2025 -0700

    gnu: Add node-balanced-match.
    
    * gnu/packages/node-xyz.scm (node-balanced-match): New variable.
    
    Change-Id: I91006e112da75c54a777bf6da83d5d939a7de9d1
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/node-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 96cd6346e1..fd010570a0 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -198,6 +198,31 @@ ABI-stable across Node.js major versions.")
     (home-page (git-reference-url (origin-uri source)))
     (license license:expat)))
 
+(define-public node-balanced-match
+  (package
+    (name "node-balanced-match")
+    (version "1.0.2")
+    (source (origin
+      (method git-fetch)
+      (uri (git-reference
+        (url "https://github.com/juliangruber/balanced-match";)
+        (commit (string-append "v" version))))
+      (file-name (git-file-name name version))
+      (sha256 (base32 
"0977r6hv9fyv6f8wvn31vcncxwhffnn05y0h4hmpkg8p2vs9ip0b"))))
+    (build-system node-build-system)
+    (arguments (list
+      #:tests? #f ; FIXME Tests require 'tape'.
+      #:phases #~(modify-phases %standard-phases
+        (add-before 'patch-dependencies 'modify-package
+          (lambda _
+            (modify-json
+              (delete-dev-dependencies)))))))
+    (synopsis "Match balanced character pairs, like { and }")
+    (description "Match balanced string pairs, like { and } or <b> and </b>. 
Supports\
+ regular expressions as well!")
+    (home-page (git-reference-url (origin-uri source)))
+    (license license:expat)))
+
 (define-public node-bindings
   (package
     (name "node-bindings")

Reply via email to