diff options
| author | Daniel Khodabakhsh <d@niel.khodabakh.sh> | 2025-06-24 08:21:40 -0700 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-01-27 10:39:43 +0100 |
| commit | 9de7fa194df8769b51042eaa765a2396b34f3dc9 (patch) | |
| tree | d2626bbbe0c694374ef0f41538113bc97af392ef /gnu | |
| parent | dd7dac883e327fa8c8a26436f1589a93f27088f5 (diff) | |
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>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/node-xyz.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 081af2ce16a..4626ffbddc3 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") |
