1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: Add node-parse-ms.

* gnu/packages/node-xyz.scm (node-parse-ms): New variable.

Change-Id: I9d12b5acff3122276e7074c9b77ba1b3d109a4fd
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Daniel Khodabakhsh
2025-06-24 08:21:40 -07:00
committed by Andreas Enge
parent dd7dac883e
commit 9de7fa194d

View File

@@ -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")