<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Any plan to replace &quot;request&quot; and &quot;moment&quot;?]]></title><description><![CDATA[<p dir="auto">Is there any plan to migrate away from “request” and “moment”?</p>
<p dir="auto"><a href="https://github.com/request/request/issues/3142" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/request/request/issues/3142</a><br />
<a href="https://github.com/moment/moment#project-status" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/moment/moment#project-status</a></p>
<p dir="auto">Thanks :)</p>
]]></description><link>https://forum.magicmirror.builders/topic/15412/any-plan-to-replace-request-and-moment</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 13:03:41 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15412.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Aug 2021 14:49:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Mon, 06 Sep 2021 20:05:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mumblebaj" aria-label="Profile: mumblebaj">@<bdi>mumblebaj</bdi></a> I’ll play with it later, We’ve hijacked the thread enough.</p>
]]></description><link>https://forum.magicmirror.builders/post/94272</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94272</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Mon, 06 Sep 2021 20:05:39 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Mon, 06 Sep 2021 15:36:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> Can you adapt the following and see if it works for you?</p>
<pre><code>var startDate = DateTime.fromISO("2021-09-06T17:22:49.916+02:00");
var someDate = DateTime.fromISO("2021-03-06T17:22:49.916+02:00");
var result = startDate.startOf("day") &lt;= someDate.startOf("day");
console.log("Date Comparison Result: ", result) // =&gt; true;
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/94268</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94268</guid><dc:creator><![CDATA[mumblebaj]]></dc:creator><pubDate>Mon, 06 Sep 2021 15:36:38 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Mon, 06 Sep 2021 15:05:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> You doing date comparison?</p>
]]></description><link>https://forum.magicmirror.builders/post/94264</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94264</guid><dc:creator><![CDATA[mumblebaj]]></dc:creator><pubDate>Mon, 06 Sep 2021 15:05:30 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 22:05:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> heh.</p>
<p dir="auto">Now, I’m down to the javascript exploding bug. <code>A &lt;= B </code> == Crash. 😢</p>
<p dir="auto">Oh well. Shelved.</p>
<p dir="auto">I’ll tackle it when/if the main switches.</p>
]]></description><link>https://forum.magicmirror.builders/post/94248</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94248</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sun, 05 Sep 2021 22:05:56 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 21:08:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a></p>
<blockquote>
<p dir="auto">why is it buried so deep?</p>
</blockquote>
<p dir="auto">cause everybody does their own thing</p>
]]></description><link>https://forum.magicmirror.builders/post/94247</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94247</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 05 Sep 2021 21:08:24 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 20:26:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mumblebaj" aria-label="Profile: mumblebaj">@<bdi>mumblebaj</bdi></a> Yeah, I got irritated enough that it wasn’t working I realized I was being a total idiot and not pointing at the JS correctly. Why the hell it’s buried so deep, well…</p>
]]></description><link>https://forum.magicmirror.builders/post/94246</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94246</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sun, 05 Sep 2021 20:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 12:57:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I have now found it in the <code>/node_modules/luxon/build/global</code></p>
<p dir="auto">I should have searched some more. :beaming_face_with_smiling_eyes:<br />
But, yes, you are correct. You can just point to that location.</p>
]]></description><link>https://forum.magicmirror.builders/post/94235</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94235</guid><dc:creator><![CDATA[mumblebaj]]></dc:creator><pubDate>Sun, 05 Sep 2021 12:57:06 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 12:35:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mumblebaj" aria-label="Profile: mumblebaj">@<bdi>mumblebaj</bdi></a> don’t copy the file to the root of your module. just use it from the linstalled location.</p>
]]></description><link>https://forum.magicmirror.builders/post/94234</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94234</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 05 Sep 2021 12:35:11 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 12:56:34 GMT]]></title><description><![CDATA[<p dir="auto">EDIT: Reference path to luxon.min.js<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> I think the following should work for you.<br />
<s>Add luxon.min.js to your project in the root of your project.</s><br />
Then add the following to you project, I have used your MMM-Multimonth as an example project.</p>
<pre><code>getScripts: function() {
              return[this.file("/node_modules/luxon/build/global/luxon.min.js")]
      },
</code></pre>
<p dir="auto">Once added you should be able to use it like this:<br />
In your project you have the following for moment:</p>
<pre><code>monthTitle = moment().add(-1, "month").format("MMMM YYYY")
</code></pre>
<p dir="auto">You an now do the following in luxon:</p>
<pre><code>const luxMonth = luxon.DateTime.now().plus({month: -1}).toFormat("MMMM yyyy")

</code></pre>
<p dir="auto">Hope this gives you a start in the right direction.</p>
<p dir="auto">You can find luxon.min.js <a href="https://moment.github.io/luxon/global/luxon.min.js" target="_blank" rel="noopener noreferrer nofollow ugc">here</a></p>
]]></description><link>https://forum.magicmirror.builders/post/94233</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94233</guid><dc:creator><![CDATA[mumblebaj]]></dc:creator><pubDate>Sun, 05 Sep 2021 12:56:34 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 03:05:33 GMT]]></title><description><![CDATA[<p dir="auto">Dropping it = Not going to bother until I have to.</p>
]]></description><link>https://forum.magicmirror.builders/post/94221</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94221</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sun, 05 Sep 2021 03:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 02:35:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> I don’t understand dropping the library…</p>
<p dir="auto">sadly its never that easy. code has to change.</p>
<p dir="auto">as for the other.<br />
can u do all you app in the browser side (module name.js)</p>
<p dir="auto">if so then u load the new moment library with<br />
npm install --save libname<br />
and then  (check syntax)</p>
<pre><code>getScripts:
  return [ this.file("node_modules/libname/....")]
     // the file is whatever would be in the script tag
</code></pre>
<p dir="auto">of u need to use node_helper, and need moment like stuff,</p>
<pre><code>const ???? = require('libname')
</code></pre>
<p dir="auto">if u need both, then u have to do both</p>
]]></description><link>https://forum.magicmirror.builders/post/94220</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94220</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 05 Sep 2021 02:35:08 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sun, 05 Sep 2021 01:28:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">I give up.</p>
<p dir="auto">Suggestion for the main app -</p>
<p dir="auto">Create a date-time service that hides what library you’re using. If you decide to replace the library in the future, you’ll need to update only one file.</p>
<p dir="auto">That way, we don’t have to move at all - just convert from accessing moment directly to accessing the internal service.</p>
<p dir="auto">In the meantime, I’m indeed dropping it.</p>
]]></description><link>https://forum.magicmirror.builders/post/94217</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94217</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sun, 05 Sep 2021 01:28:10 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sat, 04 Sep 2021 03:37:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> if you don’t have a node_helper, the you use the getScripts approach</p>
<p dir="auto">if u have both, then u have to do both</p>
]]></description><link>https://forum.magicmirror.builders/post/94208</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94208</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 04 Sep 2021 03:37:28 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sat, 04 Sep 2021 03:21:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> OK, I’m lost.</p>
<p dir="auto">If Moment goes away, I’ll delete my modules.</p>
]]></description><link>https://forum.magicmirror.builders/post/94207</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94207</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sat, 04 Sep 2021 03:21:54 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sat, 04 Sep 2021 03:05:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> no. one OR  the other</p>
]]></description><link>https://forum.magicmirror.builders/post/94206</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94206</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 04 Sep 2021 03:05:52 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Sat, 04 Sep 2021 00:12:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Oh, so I set up the require in node_helper, and use it accordingly in the main module script? Nice.</p>
]]></description><link>https://forum.magicmirror.builders/post/94205</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94205</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sat, 04 Sep 2021 00:12:09 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Fri, 03 Sep 2021 22:01:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> require only works in node_helper</p>
<p dir="auto"><img src="/assets/uploads/files/1630706442140-screenshot_20210903-150010_chrome.jpg" alt="Screenshot_20210903-150010_Chrome.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">the doc also gives u a &lt; script  approach</p>
<p dir="auto">still npm install<br />
then getScripts to load the file from node_modules folder/luxon folder</p>
<p dir="auto">the use in modulename.js as shown for browser<br />
<img src="/assets/uploads/files/1630706369765-screenshot_20210903-145848_chrome.jpg" alt="Screenshot_20210903-145848_Chrome.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/94204</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94204</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 03 Sep 2021 22:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Fri, 03 Sep 2021 21:46:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I’m trying to get luxon up and running.</p>
<pre><code>Supports Node.js 6+. Install via NPM:

npm install --save luxon

const { DateTime } = require("luxon");
</code></pre>
<p dir="auto">Do I need to use node_helper to get it going, then?</p>
<p dir="auto"><a href="https://moment.github.io/luxon/#/install" target="_blank" rel="noopener noreferrer nofollow ugc">https://moment.github.io/luxon/#/install</a></p>
]]></description><link>https://forum.magicmirror.builders/post/94203</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94203</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Fri, 03 Sep 2021 21:46:00 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Fri, 03 Sep 2021 21:07:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> explain more.  externals are used in node_helper, and some can be used in module name.js as loaded by getScripts()</p>
<p dir="auto">if the lib shows useage as a &lt; script … /&gt;<br />
link, then u can use it in getScripts</p>
]]></description><link>https://forum.magicmirror.builders/post/94202</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94202</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 03 Sep 2021 21:07:10 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Fri, 03 Sep 2021 20:43:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> Been playing with changing over anyway (to luxon), and all I’ve been able to do for sure is make MM not come up at all.</p>
<p dir="auto">There needs to be MUCH better documentation on how to build out with external modules. It don’t make sense.</p>
]]></description><link>https://forum.magicmirror.builders/post/94201</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94201</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Fri, 03 Sep 2021 20:43:15 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Fri, 03 Sep 2021 11:16:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/0m4r" aria-label="Profile: 0m4r">@<bdi>0m4r</bdi></a> meh either way LOL</p>
]]></description><link>https://forum.magicmirror.builders/post/94195</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94195</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Fri, 03 Sep 2021 11:16:25 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Fri, 03 Sep 2021 11:15:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: bkeyport">@<bdi>bkeyport</bdi></a> I wouldn’t worry about it.  Moment will be around for a while.  Easy to use and yes you can add it to your own package json file and still use it.</p>
<p dir="auto">Request…not so much LOL</p>
]]></description><link>https://forum.magicmirror.builders/post/94194</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94194</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Fri, 03 Sep 2021 11:15:52 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Fri, 03 Sep 2021 05:45:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> technically it is based on Chromium (<a href="https://www.chromium.org/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.chromium.org/</a>).</p>
]]></description><link>https://forum.magicmirror.builders/post/94186</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94186</guid><dc:creator><![CDATA[0m4r]]></dc:creator><pubDate>Fri, 03 Sep 2021 05:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to Any plan to replace &quot;request&quot; and &quot;moment&quot;? on Thu, 02 Sep 2021 23:43:33 GMT]]></title><description><![CDATA[<p dir="auto">I’m using Brave which is Chrome based without all the tracking and such ;)</p>
]]></description><link>https://forum.magicmirror.builders/post/94181</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94181</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Thu, 02 Sep 2021 23:43:33 GMT</pubDate></item></channel></rss>