node_shims
node_shims copied to clipboard
npm packages providing shims for the Deno namespace and other globals. Useful for running Deno-first programs on Node.
Relates to https://github.com/denoland/node_shims/issues/110
Just a bump, would be great to have
https://github.com/denoland/node_shims/blob/094b9cfa50aac59e7b113816ddd8bbda40493194/packages/shim-deno/src/deno/stable/functions/execPath.ts#L5 I'm trying to build a cli with Deno and cross publish to npm using `dnt` but the cli works only if deno is installed and the above LOC should...
Can you please remove Object.preventExtensions for the `Deno` object? I can't add additional polyilfils that seem to be missing during my local development.
The tags are now somewhat meaningless due to this being a mono repo. It would be good to write a deno script that automatically publishes any unpublished npm packages on...
```js import { Deno } from "@deno/shim-deno" Deno.listen({ port: 8000 }) ``` ``` .../node_modules/@deno/shim-deno/dist/deno/stable/functions/listen.js:48 const listener = new Listener_js_1.Listener(server._handle.fd, { ^ TypeError: Cannot read properties of null (reading 'fd') at...
When trying to transpile with shims, I get the following error: ``` FAILURES blocks events that post the same content too quickly TypeError: dntShim.Deno.seekSync is not a function at js_read...
Reference: https://examples.deno.land/color-logging After months of thinking, I came up with this code that achieves color logging: ```js let chalk = await Import("[email protected]"); let oc = console; function styled(type, message, ...styles)...