[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51838] [PATCH v5 33/45] gnu: Add node-ms.
From: |
Philip McGrath |
Subject: |
[bug#51838] [PATCH v5 33/45] gnu: Add node-ms. |
Date: |
Thu, 16 Dec 2021 21:03:13 -0500 |
* gnu/packages/node-xyz.scm (node-ms): New variable.
---
gnu/packages/node-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 30a0174063..3103124bed 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -890,3 +890,46 @@ (define-public node-segfault-handler
@code{SIGSEGV} signal is raised, the module will print a native stack trace to
both @code{STDERR} and to a timestamped file.")
(license license:bsd-3)))
+
+(define-public node-ms
+ (package
+ (name "node-ms")
+ (version "2.1.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/vercel/ms";)
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1l74kmmwffmzdz38lli0v5mdb9p9jmsjxpb48ncknqw2n74cgf08"))))
+ (build-system node-build-system)
+ (arguments
+ `(#:absent-dependencies
+ `("eslint"
+ "expect.js"
+ "husky"
+ "lint-staged"
+ "mocha"
+ "prettier")
+ #:tests? #f))
+ (home-page "https://github.com/vercel/ms";)
+ (synopsis "Tiny millisecond conversion utility")
+ (description "Use this package to easily convert various time formats to
+milliseconds.
+
+Features:
+@itemize @bullet
+@item
+Works both in Node.js and in the browser.
+@item
+If a number is supplied to @code{ms}, a string with a unit is returned.
+@item
+If a string that contains the number is supplied, it returns it as a
+number (e.g. it returns @code{100} for @code{'100'}).
+@item
+If you pass a string with a number and a valid unit, the number of
+equivalent milliseconds is returned.
+@end itemize")
+ (license license:expat)))
--
2.32.0
- [bug#51838] [PATCH v5 22/45] gnu: Add node-inherits., (continued)
- [bug#51838] [PATCH v5 22/45] gnu: Add node-inherits., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 24/45] gnu: Add node-string-decoder., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 26/45] gnu: Add node-nan., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 25/45] gnu: Add node-readable-stream., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 27/45] gnu: Add node-openzwave-shared., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 23/45] gnu: Add node-safe-buffer., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 28/45] gnu: Add node-addon-api., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 29/45] gnu: Add node-sqlite3., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 30/45] gnu: Add node-file-uri-to-path., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 31/45] gnu: Add node-bindings., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 33/45] gnu: Add node-ms.,
Philip McGrath <=
- [bug#51838] [PATCH v5 32/45] gnu: Add node-segfault-handler., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 37/45] gnu: Add node-serialport-parser-readline., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 34/45] gnu: Add node-debug., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 35/45] gnu: Add node-serialport-binding-abstract., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 36/45] gnu: Add node-serialport-parser-delimiter., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 38/45] gnu: Add node-serialport-bindings., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 39/45] gnu: Add node-serialport-parser-regex., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 40/45] gnu: Add node-serialport-parser-ready., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 42/45] gnu: Add node-serialport-parser-cctalk., Philip McGrath, 2021/12/16
- [bug#51838] [PATCH v5 41/45] gnu: Add node-serialport-parser-inter-byte-timeout., Philip McGrath, 2021/12/16