babakfp
How to delete all data of a `Deno.Kv` DB file?
Hi 👋
Is there a way to delete all content inside a db file in
openKv
?
Doing this doesn't work:
After running that and kv.list({ prefix: [] })
the length of it would be 0
but there are like 300 lines of stuff inside the DB file.4 replies
How to prevent `deno add` from adding `^` to package version?
Hi 👋
Is there a one time option like PNPM? So I can set it once for all and not have to deal with it every time.
I don't understand why every package manager adds that character. You may install a different version of a package without knowing it and introduce bugs into your project because some packages may have breaking changes in their minor version updates.
3 replies
Looking for an alternative to x/deno_open
Hi 👋
I'm using the
--unstable-hmr
option with Deno and whenever I modify code and save, this library opens a new window! I'm looking for a library that checks if the basepath (http://localhost:3000
) is already open, if it is open, it doesn't do anything, meaning if http://localhost:3000/something
was open, it still won't do anything and only if http://localhost:3000
wasn't open it opens it in a new browser window.
https://deno.land/x/deno_open@v0.0.64 replies
Good Back-end Framework?
Hi 👋
I'm looking for a back-end framework to use in my Deno project. I have tested a few, like Oak, Abc, and Hono.
This is what I'm looking for:
- Good Documentation:
- - Documentation that is written by people who know how to write good documentation. Just because you have written documentation, it doesn't mean you know how to write good documentation.
- - A good documentation website. It looks good. Has Dark Mode (I know, I'm using Dark Reader). Has Seach functionality (which seems to be something rare for some reason!).
- - Written in easy and simple language.
- - Step-by-step guides.
- - A lot of simple and advanced examples.
- - Includes 100% coverage jsDoc/tsDoc comments. Comments that explain things, rather than pointing to a potato and saying it's a potato.
- Batteries included. I don't want to google how to do some stupid simple thing, I want everything to be included and well-documented so I can build what I want to create rather than wasting time and losing my mind.
- - When I submit a form, I want this framework to handle schema validation with something like Zod/Valibot.
- - I need it to handle
multipart/form-data
form data. I want it to be validated. I also want it to return UTF-8 (just text lol) instead of other stupid things.
- - I need to be able to send back form submission errors to the front-end.
I got tired of writing. Just something good. Most of these things are very easy to do with SvelteKit. I don't want to use Tauri + SvelteKit because they add a lot of crap and I just want to keep things simple. But it seems like I can't find proper tools in the Deno ecosystem!
I'm honestly going to switch to other tools if I don't get any results. I have it built already but it's missing simple things like form error validation, etc.3 replies
Deno Oak doesnt work when compiled to `.exe`
Hi 👋
I have this example from Deno site and when compile it to
.exe
and run it, I get the longs in the console of the .exe
.
I have something similar with Oak:
The problem is that I don't get the longs in the console of the .exe
when I run it. I don't get any errors, it's just a blank terminal.
Does Oak does something behind the seen that breaks this? I can't use other frameworks if they don't have the same issue.8 replies
Incorrect 404 error when importing an explicit version of a package
Hi 👋
I get this error:
"Implicitly using latest version (v1.5.2) for https://deno.land/x/cheetah/mod.ts"
So, I change the import URL to this: https://deno.land/x/cheetah@1.5.2/mod.ts
And now I get a 404 error package not found!
Another thing about this package is that different repos are set to different versions! And the repo for the latest version is archived.
https://deno.land/x/cheetah@v1.5.2
https://deno.land/x/cheetah@v1.5.0
7 replies
What does this library "assert" does?
Hi
https://deno.land/std@0.215.0/assert/mod.ts
What does it do in this example?
https://docs.deno.com/runtime/manual/advanced/jsx_dom/deno_dom#basic-example
3 replies
What does this library "assert" does?
https://deno.land/std@0.215.0/assert/mod.ts
What does it do in this example?
https://docs.deno.com/runtime/manual/advanced/jsx_dom/deno_dom#basic-example
3 replies
Looking for an alternative to deno_dom
Hi
I'm looking for an alternative library to https://deno.land/x/deno_dom@v0.1.45/deno-dom-wasm.ts
Problems with deno_demo: https://stackoverflow.com/a/76630979/10799492
4 replies
How Can I Delete Deno???
I did this, but Deno still works!
https://www.reddit.com/r/Deno/comments/xza84i/how_do_you_uninstall_deno/
7 replies
How can I use "Logging with colors" with `"npm:log-update"`
Hi
https://examples.deno.land/color-logging
I don't want to use Chalk because it's not properly typed.
4 replies