@@ -870,6 +870,48 @@ (define-public node-is-callable
value is callable.")
(license license:expat)))
+(define-public node-is-regex
+ (package
+ (name "node-is-regex")
+ (version "1.1.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/inspect-js/is-regex")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pbjvzl20wvjj1khwrqrg3fipv8xfpm0x2raazjdn03c1s2zrvgi"))))
+ (build-system node-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-dependencies 'delete-dependencies
+ (lambda args
+ (delete-dependencies
+ '("@ljharb/eslint-config"
+ "aud"
+ "auto-changelog"
+ "core-js"
+ "eclint"
+ "eslint"
+ "foreach"
+ "in-publish"
+ "npmignore"
+ "nyc"
+ "object-inspect"
+ "safe-publish-latest"
+ "tape")))))
+ #:tests? #f)) ; FIXME tests depend on node-tape.
+ (inputs
+ (list node-call-bind node-has-tostringtag))
+ (home-page "https://github.com/inspect-js/is-regex")
+ (synopsis "Javascript predicate to identify if value is @code{Regex}")
+ (description "This package provides a Javascript function to identify if a
+value is a JS @code{Regex}.")
+ (license license:expat)))
+
(define-public node-is-symbol
(package
(name "node-is-symbol")