From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aJoDBFZwzWHcFQEAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 09:39:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2HY3OFVwzWHVOQAAG6o9tA (envelope-from ) for ; Thu, 30 Dec 2021 09:39:49 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9E775D4C1 for ; Thu, 30 Dec 2021 09:39:49 +0100 (CET) Received: from localhost ([::1]:40918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qF2-0002QE-B8 for larch@yhetil.org; Thu, 30 Dec 2021 02:52:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2qEG-0000tg-0V for guix-patches@gnu.org; Thu, 30 Dec 2021 02:52:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2qEF-0007CZ-N9 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:52:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2qEF-0007Ed-N4 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:52:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v7 29/41] gnu: Add node-ms. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 07:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.164085068527648 (code B ref 51838); Thu, 30 Dec 2021 07:52:03 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:51:25 +0000 Received: from localhost ([127.0.0.1]:51246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qDd-0007Bk-8T for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:51:25 -0500 Received: from mail-vk1-f171.google.com ([209.85.221.171]:36483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qA4-0006wt-8O for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:47:45 -0500 Received: by mail-vk1-f171.google.com with SMTP id d189so1599104vkg.3 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f3KJqGDMbHL7+2giNWjAv7bLVHZaVJTqdQ9axnSkuus=; b=AV6uW9/ifCi6YAdi5QW5WVF4Y9P4w1BE5NmMeJwsYXyw2YJUT1OqZi7F5302CFGcHX lhZZVy3DaiZkZiidOG1BMQzPNl+OY84SQpgZaOQK+f8QSio+gqiwUpSgXmmktzxWIf4C rBwrp7tLxyAyFZzsdLKy5Bn+LrDUMU341RsonDvFlBg9pPZQo0pmYyyQLjgdUZKyqZ+R WaRpHXJR9zJ4beZXI4bGebnoMy4QudMcNBuo4F0X9LSN41HchtOI61RrZZZJAGtZhvmM WNjVjmcuxk3YHP7UFL6G4ALC58HoX0JCeKIE7KZ68LIvntbOp8kP3a/7eCy7xgk13td8 xfmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f3KJqGDMbHL7+2giNWjAv7bLVHZaVJTqdQ9axnSkuus=; b=bYE4CA/EF2f+Cn3J3Hs71QUaehzocpSxyK9R5Hh6rOZNdXXAyE/Q7V+7PxCSXjixn8 1SyexcMLKZB0mL1kONHYALW2su1OXECZoFqCvvWFynTzQiJnATbd6KgJtOagG/gcb8sf ZQH5oei8VqVMxuu7nblhJATxhuH9CDv8g2zObbbockaPC3J5KTtUmdVrpznXXkCavidT 6UfjVEZYoUQos+zbkRcx0AJA1oWK/kj08fhdJAmLSta2ZK5EuXQpvgmKckndRD3mJ+54 T6vCPvBVWBB6ylw5GJBf6c9rYLrJ+AWb1vwI7vRFKAXvyH7WET9J6VReU2YXS8G2tr0j X7kg== X-Gm-Message-State: AOAM533OhMWTQajyJBCgBZOFoEntnhK5ZSZxUv7wkEug4Et+cn5Qxgpa ULCbKj3SO8z8nv1uV83zLKtqUn8IyUWURCO4 X-Google-Smtp-Source: ABdhPJw+WgoCaGEjZNWlXmirWi64mhw3b+ulKME7DNArzO00SaVZuByvza90xUycszh5bhV3CXdsfw== X-Received: by 2002:ac5:c853:: with SMTP id g19mr9815389vkm.20.1640850458743; Wed, 29 Dec 2021 23:47:38 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id p12sm4795641uae.18.2021.12.29.23.47.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:47:38 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:44:44 -0500 Message-Id: <20211230074456.33433-30-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230074456.33433-1-philip@philipmcgrath.com> References: <20211230073919.30327-1-philip@philipmcgrath.com> <20211230074456.33433-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640853589; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=f3KJqGDMbHL7+2giNWjAv7bLVHZaVJTqdQ9axnSkuus=; b=Equrbtx691dKZHtApwyZMx4iTF0hOb0u/x/rKl6VX9vmmlouKUOnl3XlZ1TU/zy+AymJbE ZiiJl7tmjhK3ZRCMSOxKwlPpsxQGC34qi4kpIvK2jBGpO7xc7Q5wX06aVfW18SsCCOH1Az 09iyBC7eKVPOa8sUq4zKNJ8XuZUFMlDZN1pVF21B0pOGWZWVx3DunHZJATmFjcn79sFcyk UGSlBb6FR0DOlpdiZR088zkKedIhkFRgWGwpaYOOHFPSv/868bIqx88LjDxqxkljrCZZbN ItzEZdF0ELdd8FJhA84D8DTVdZfXk9neReukZxORkl9z/vU9KfqT9JzovezgNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640853589; a=rsa-sha256; cv=none; b=ESD337LrX8NWAgxYDZZWKEIXg5OogiKvcGd3jLDKD8rb/x/4j0ufGmYMpjWnZZEfgKqZAA oCJc7JJO184kWlKXMAoyvJNL6We2F4byuW80G00qb+56a0Qh8ueHnUxA4kflGaRgKmSfnh VpfCR68SBpN2q0AKmIZRtZmK0yd2DXMB2R11008LC34aF7OBLwyR+/hWLLuhb6Q73JM/T5 XQRm6O7if+ll35k419/vE6QuZhWvNb8d86YnjgFz/Fuy2PUF6UY7Jk2BKyux4p1rUaFDCU gXUX4XTcWov/2zjEsa7RWYIAtmAQeQmiBVqSO48kl0KHP1Q+5DL/IcxboX6bbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b="AV6uW9/i"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b="AV6uW9/i"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9E775D4C1 X-Spam-Score: 0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: pGPjy+S6YGRH * 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 595885b191..6415fb92f5 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -908,3 +908,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