jradxl
jradxl
DDeno
Created by jradxl on 10/7/2024 in #help
Deno Add syntax?
Ah! I'm using Deno v2
10 replies
DDeno
Created by jradxl on 10/7/2024 in #help
Deno Add syntax?
OK. There obviously was once, before npm: and jsr: as the documentation is littered with deno add @std/http etc
10 replies
DDeno
Created by jradxl on 10/7/2024 in #help
Deno Add syntax?
I rather mucked up my example.. Was trying with Oak, which says: Deno CLI and Deno Deploy oak is available on both deno.land/x and JSR. To use from deno.land/x, import into a module: I just wanted to know what the syntax is for things that are not in jsr or npm yet
10 replies
DDeno
Created by jradxl on 10/7/2024 in #help
Deno Add syntax?
deno add @std/http error: @std/http is missing a prefix. Did you mean deno add jsr:@std/http?
10 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
Dynamic Imports did work, but as I was focusing on simple CLIs, with a Shebang I just wondered if that would cause me issues later. Then, since localhost didn't work for me I rather focused on that, especially since @coty said it should. Now you've reminded me about dynamic imports, I'll have another go... Yes, I'm very impressed with Deno (v2!) and I can feel it's going to be a great alternative to Bash, once I get over the learning curve. I did try Deno years ago but the debugging in vscode didn't work then. Now it's amazing. Thanks.
11 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
solved
11 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
I've got it working. I've used Nginx and https, with a real ssl certificate but limited to within my own lan (using pihole as split dns. ie not public). And ensuring the published directory had a deno.json file. I'm not sure what bits caused it to work, but it certainly does now. So my import statement is like: import { wordCount } from "https://myhost.mydomain.dynu.XXX/mydeno/string-utils/mod.ts" Thanks for answering
11 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
I've got a work around by using a non-user related path, and using a unix deno group. import { something } from "/opt/deno/mylibraries/mod.ts";
11 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
What should it be?
11 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
curl -I http://localhost/mod.ts HTTP/1.1 501 Not Implemented Content-Type: text/plain Content-Length: 22 Date: Mon, 30 Sep 2024 23:09:54 +0000
11 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
I was using PyPi python's httpserver and its documentation doesn't say anything about MIME types. I'll try tomorrow with nginx. I was reading documention on import maps but didn't think it would help (or undertand it)
11 replies