guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 9de7fa194df8769b51042eaa765a2396b34f3dc9
Author: Daniel Khodabakhsh <[email protected]>
AuthorDate: Tue Jun 24 08:21:40 2025 -0700
gnu: Add node-parse-ms.
* gnu/packages/node-xyz.scm (node-parse-ms): New variable.
Change-Id: I9d12b5acff3122276e7074c9b77ba1b3d109a4fd
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/node-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 081af2ce16..4626ffbddc 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -807,6 +807,43 @@ if desired.")
while being as light-weight and simple as possible.")
(license license:expat))))
+(define-public node-parse-ms
+ (package
+ (name "node-parse-ms")
+ (version "3.0.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sindresorhus/parse-ms")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1chq6a4q2ycswkpz16bgm7853g6rh3w1j5dr7061x9h6xip3mphb"))))
+ (build-system node-build-system)
+ (arguments (list
+ #:tests? #f ; FIXME: Tests require 'xo', 'ava', and 'tsd'.
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'patch-dependencies 'modify-package (lambda _
+ (modify-json
+ (delete-dev-dependencies)))))))
+ (synopsis "Parse milliseconds into an object")
+ (description "Usage
+import parseMilliseconds from 'parse-ms';
+parseMilliseconds(1337000001);
+/*
+{
+ days: 15,
+ hours: 11,
+ minutes: 23,
+ seconds: 20,
+ milliseconds: 1,
+ microseconds: 0,
+ nanoseconds: 0
+}
+*/")
+ (home-page (git-reference-url (origin-uri source)))
+ (license license:expat)))
+
(define-public node-path-key
(package
(name "node-path-key")