00:01:26  <grantwu>ah, thanks.
00:01:37  <grantwu>I really struggled to find this documentation.
00:01:52  <grantwu>close
00:01:55  * grantwupart ("WeeChat 2.2")
00:02:15  <Sven_vB>try bing. 3rd result for "npm unsafe-perm", then in that page first match for "unsafe-perm". ;)
00:02:57  * aeontechquit (Ping timeout: 240 seconds)
00:03:42  * goodenou_quit (Remote host closed the connection)
00:03:52  * aeontechjoined
00:04:20  * kyanjoined
00:04:35  * shanxSquit (Ping timeout: 240 seconds)
00:05:28  * shanxSjoined
00:05:28  * kjartanquit (Read error: Connection reset by peer)
00:06:46  * kjartanjoined
00:07:11  * encYdejoined
00:07:17  * Sharaaljoined
00:09:11  * coderpathjoined
00:09:24  * coderpathpart
00:10:57  * lundibundiquit (Ping timeout: 240 seconds)
00:11:46  * Sharaalquit (Ping timeout: 256 seconds)
00:13:05  * smccarthyjoined
00:13:22  * Krenair24joined
00:13:49  * rickdaddyjoined
00:14:31  <rickdaddy>Hey there. Is node appropriate for an app that mostly handles github webhooks and does some db/api calls in response?
00:14:43  <rickdaddy>vs something like rails?
00:15:02  * nivagjoined
00:15:26  * Krenair24quit (Killed (Sigyn (Spam is off topic on freenode.)))
00:16:01  <DeltaHeavy>Yeah, totally
00:17:25  <rickdaddy>great, thanks
00:17:28  * FooBarWidgetjoined
00:17:52  <rickdaddy>everyone always talks down node for quick iterations and mvps
00:18:20  <rickdaddy>maybe a little more boilerplate but it seems like you end up with something that's much simpler in the long run
00:22:22  * smccarthyquit
00:25:09  * renloquit (Ping timeout: 272 seconds)
00:26:18  <Sven_vB>if you get repetitive boilerplate, it's probably time to make it a module.
00:27:06  * Ohelig15joined
00:27:12  * eckhardt_quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:29:07  * DeltaHeavyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:29:57  <dnscat>how do I use npm packages on aws lambda? will it automatically pull it if I do something like require('somepackage') ?
00:30:01  <Sven_vB>also check whether the boilerplate is worth it. maybe there are simpler ways.
00:31:33  * tmquit (Ping timeout: 260 seconds)
00:31:36  <Sven_vB>dnscat, that one was tricky. I had to scroll down 2 paragraphs so I could see the 6th search result. https://forums.developer.amazon.com/questions/131191/how-to-install-new-module-in-aws-lambda-function-i.html
00:33:02  * beatleboy07joined
00:33:27  * Ohelig15quit (Ping timeout: 240 seconds)
00:34:28  * Dirakquit (Ping timeout: 260 seconds)
00:35:04  <brainproxy>is it a known thing that setting process.env.NODE_PATH during runtime does work on linux/mac, but not on Windows?
00:35:10  * tmjoined
00:35:22  * jumpmanjoined
00:35:26  <dnscat>so it seems you have to zip the entire dir with the node_modules dir in it
00:35:37  <Sven_vB>brainproxy, at least it's a broken thing. :D
00:35:59  <Sven_vB>dnscat, yeah that's what I understand from the thread.
00:36:09  <brainproxy>Sven_vB: this does seem to work: module.paths.unshift(path.join('/path/to/another/node_modules'))
00:36:15  <brainproxy>on windows, I mean
00:36:23  <Sven_vB>dnscat, it gets even trickier if you need native modules. https://www.thepolyglotdeveloper.com/2017/12/deploying-native-nodejs-dependencies-aws-lambda/
00:36:30  <dnscat>I wonder what the equivalent for the serverless module would be
00:36:54  <Sven_vB>brainproxy, why do you even need to manipulate the path?
00:37:16  <brainproxy>because I have need for a horrible ugly hack until I have time for a better solution
00:37:31  * gdibassjoined
00:37:36  <brainproxy>that time being next week, but need something working by monday
00:37:43  * miliarchjoined
00:37:50  * orbyt_quit (Ping timeout: 256 seconds)
00:37:58  <Sven_vB>brainproxy, can't you just use absolute paths in require?
00:38:21  * rickdaddyquit (Ping timeout: 252 seconds)
00:39:00  <brainproxy>so there's a framework that really shouldn't be installed globally, but that's how it's designed, and in an independent package that makes use of the framework both as a tool and as a lib, I need to have the framework's deps be transitive deps
00:39:06  * shanxSquit (Ping timeout: 260 seconds)
00:39:13  * orbyt_joined
00:39:22  <brainproxy>but installing the framework as a dep isn't an option for other reasons
00:39:24  <brainproxy>for now
00:39:27  <brainproxy>so... cheating
00:39:28  <Sven_vB>brainproxy, and all that on windows?
00:40:05  <brainproxy>well I'm working around the issue on all platforms, but on mac/linux, it's fine to just set process.env.NODE_PATH
00:40:15  <brainproxy>i mean that works, I've tested it quite a bit
00:40:24  * draigjoined
00:40:53  * kneekiquit (Ping timeout: 260 seconds)
00:41:09  <jumpman>This is going to sound quite silly, but is there any way to make UDP connections / send datagrams through the `net` module (which is TCP)?
00:41:10  * plexigrasquit (Ping timeout: 265 seconds)
00:41:19  <jumpman>it doesn't have to be reliable or consistent or good
00:41:51  <jumpman>but I'm working in a context where only `net` is available to me and want to talk to a device that speaks in dgrams
00:42:05  * gambl0rejoined
00:42:06  * shanxSjoined
00:43:13  <Sven_vB>jumpman, in an environment with such strange restrictions, are you sure it's even possible to send drgams?
00:43:39  <jumpman>nope
00:44:31  <jumpman>it's supported on the device level, but all I really know is that the `net` module is to be ported to the interpreter at some time in the future
00:44:39  <Sven_vB>if you really only have the net module, I don't see any way to do it.
00:44:46  * texinwien_quit (Ping timeout: 272 seconds)
00:44:51  <jumpman>thanks
00:44:57  * encYdequit (Ping timeout: 240 seconds)
00:45:17  <jumpman>i figured that was a 99% chance, but i don't know enough about how networking works at the protocol level to say with any reasonable certainty that there's no hacky way to do it
00:45:55  * danecandojoined
00:46:01  <Sven_vB>I'd have a lot of hacky ideas but all of them require some other features available, like netfilter or a shell.
00:46:22  * lanlinkjoined
00:47:23  <jumpman>yeah -- at that point i'd have to work on the interpreter itself, or embed it & expose an API, and in either case it's enough low-level legwork to justify just skipping node entirely
00:47:58  <jumpman>(or I'll just write an intermediary server, since being jury rigged is not remotely a concern)
00:48:44  * whalemerjoined
00:50:54  * kneekijoined
00:51:53  * aeontechquit (Quit: aeontech)
00:56:07  * bRinbgjoined
00:56:53  * kneeki|ajoined
00:56:55  * RoriconKnightquit (Quit: Farewell, may the blessing of Loli Goddess stay with us.)
00:58:17  * kneeki|aajoined
01:00:27  * kneekiquit (Ping timeout: 240 seconds)
01:01:57  * kneeki|aquit (Ping timeout: 240 seconds)
01:03:57  * sxajoined
01:04:20  * kneeki|ajoined
01:04:50  * notnulljoined
01:04:51  * notnullquit (Changing host)
01:04:51  * notnulljoined
01:05:50  * TehNutjoined
01:06:05  * Dirakjoined
01:07:57  * kneeki|aaquit (Ping timeout: 240 seconds)
01:08:23  * TehNutquit (Killed (Unit193 (Spam is not permitted on freenode.)))
01:08:48  * draigquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:09:40  * draigjoined
01:12:22  * lanlinkquit (Quit: lanlink)
01:12:28  * nivagquit (Remote host closed the connection)
01:12:54  * khromequit (Quit: khrome)
01:13:55  * nivagjoined
01:14:53  * Sharaaljoined
01:15:43  * angelljoined
01:16:28  * kneeki|aquit (Ping timeout: 260 seconds)
01:19:50  * Sharaalquit (Ping timeout: 265 seconds)
01:20:00  * ed209quit (Remote host closed the connection)
01:20:08  * ed209joined
01:20:57  * zumba_addictjoined
01:21:54  * sxaquit (Ping timeout: 268 seconds)
01:22:05  * gambl0requit (Ping timeout: 240 seconds)
01:23:12  * bdunavantjoined
01:25:22  * zumba_addictquit (Ping timeout: 244 seconds)
01:26:19  * atomicb0mbjoined
01:31:50  * bdunavantquit (Remote host closed the connection)
01:32:14  * bdunavantjoined
01:33:07  * yano14joined
01:33:18  * atomicb0mbquit (Quit: Textual IRC Client: www.textualapp.com)
01:33:55  * yano14quit (Killed (Sigyn (Spam is off topic on freenode.)))
01:34:29  * chargen__joined
01:34:54  * khromejoined
01:37:26  * atomicb0mbjoined
01:41:52  * kneeki|ajoined
01:42:09  * draigquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:43:18  * marduk19129joined
01:44:36  * marduk19129quit (Killed (Sigyn (Spam is off topic on freenode.)))
01:46:12  * chargen__quit (Ping timeout: 272 seconds)
01:46:24  * atomicb0mbquit (Quit: Textual IRC Client: www.textualapp.com)
01:51:44  * shanxSquit (Ping timeout: 255 seconds)
01:52:28  * bdunavantquit (Remote host closed the connection)
01:52:43  * bdunavantjoined
01:53:15  * bdunavantquit (Remote host closed the connection)
01:53:22  * shanxSjoined
01:53:32  * bdunavantjoined
01:53:44  * shanxSquit (Client Quit)
01:54:01  * bdunavantquit (Remote host closed the connection)
01:54:44  * bdunavantjoined
01:54:48  * bdunavantquit (Remote host closed the connection)
01:55:34  * bdunavantjoined
01:55:35  * bdunavantquit (Read error: Connection reset by peer)
01:58:44  * jphasequit (Remote host closed the connection)
02:04:52  * jdaltonjoined
02:08:30  * khromequit (Quit: khrome)
02:10:24  * khromejoined
02:11:05  * draigjoined