Importing internal modules

I would like to use in my code, but it can't be directly imported from ext: because i'm writing a normal program and not working on the deno cli itself :P Do i just have to vendor and patch it? I'd really rather not.
deno/ext/console/01_console.js at main · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
Deno AI Helper47d ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, it seems like you're trying to import a module that is internal to Deno's runtime and not exposed for public use in the same way that third-party modules are. If you're looking to use functionality similar to what's in 01_console.js, you would typically import the console module that's already available globally in Deno. The global console object in Deno should have the standard methods you need, such as log, warn, error, etc. If you need functionality that is not exposed by the global console object, you might indeed have to copy (vendor) the code and modify it (patch it) to work with your application. This is not an ideal solution, as it could lead to maintenance issues down the line, especially when Deno updates its internal APIs. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice. If the functionality you need is not available in the standard library or through a third-party module, you may need to consider alternative solutions or workarounds that fit within the constraints of your project.
Leokuma42d ago
which functions do you want to use?
it's em!41d ago
I just copied the table and css functions and wrote the rest myself but i wanted to make a custom console object that would output to a custom buffer
More Posts
Strange error after lint in github actionsfor a some reason after: ```yml - name: Run linter run: deno lint ``` I get error that saysHow to encrypt and decrypt files from S3 without loading the hole content into memory?How to encrypt and decrypt files from S3 without loading the hole content into memory? I have this Worksapces / Monorepo supportDeno does not currently have the capability to resolve `workspace:^` references and this breaks any Deno Oak : Can't connect to SSE with Deno DeployHello, I'm trying to deploy an app who use Server Sent Events. The goal is to keep in memory differeError connecting to mongoose when using deno cli**deno-x86_64-pc-windows-msvc v1.41.1** Testing the following code using `nodejs` and on `deno deplHow to debug deno on Visual Studio? (Not VSCode)Is it possible to debug deno on Visual Studio? (not vscode) I only know how to debug it using windoHow to polyfill node imports when bundling with the deno version of esbuild?Hello, I am trying to run esbuild using to bundle a Deno project into aforward stream response from openapi to frontendforward stream openapi by using deno backend as a middleware, how to receive and send stream to fronShould deno install work with jsr?What am I doing wrong? When I try to install a CLI from and then use it, I get an error messaImport-IntelliSense with Fresh and VSCode doesn't work as expectedHey. I'm fairly new to Deno and Fresh so I assume I'm simply missing something. I've created a Fresh