import.meta.resolve takes a #JavaScript module specifier (a relative or absolute path, or a bare module specifier with an optional subpath) and returns a path on disk.
For #node.js, Is there a function to perform the inverse operation? Given an abspath to a file on disk, I want to "deresolve" it to a relative path as referenced in the exports map
When trying to console.log large objects in node, the output sometimes gets truncated. My quick solution is to JSON.stringify the object, but then I lose the colors that util.inspect provides, which are nice to have.
To keep the colors you can write to stdout directly like so:
get-stream just had a major release v8.0.0, with lots of improvements. It is a helpful utility to return a stream's contents. It works in Node, Deno and browsers. It can set a maximum size, or return partially read data on errors.
A Next.js app requires dozens of config files — next.config.js, eslintrc.json, tsconfig.json, package.json, postcss.config.js, tailwind.config.js, and more.
Ich halte im Übrigen die Erzählung "Die #AfD profitiert von dem Streit in der Ampel", die von vielen, auch seriösen Medien und Kommentatorinnen verbreitet wird, für Humbug. Denn das würde bedeuten, 20 (+x) Prozent der Wählerinnen wollen lieber Faschismus als eine häufig uneinig handelnde Regierung. Konkreter: Jeder*r fünfte Deutsche will eher eine Diktatur als Diskussionen auf der Regierungsbank. Gibt es für diese implizit transportierte These denn irgendwelche Belege?
There, I break down several optimizations in heap snapshot that I landed in V8. The improvements generating the heap snapshots are over 50%. But, for minified code, it can be over 90%! 🚀.
This work is part of the collaboration between @igalia and Bloomberg ❤️
Gibt es eigentlich irgendwelche Fakten die belegen dass es diese Wirtschaftsmigration als Teil von Flüchtlingsströmen überhaupt gibt oder ist das alles nur den wilden Fantasien der Rechtsradikalen entsprungen?
Zusammengefasst: Die meisten irregulären Migranten sind keine Flüchtlinge und vermutlich könnte man die Zahl der anerkannten Flüchtlinge durch strengere Prüfung noch weiter senken, aber man muss hier die Definition von “Flüchtling” beachten. Flüchtling ist nach der Genfer Flüchtlingskonvention nur, wer aufgrund von Herkunft, Religion etc. verfolgt wird. Nicht-diskriminierende Verfolgung, Kriege, Hungersnöte und Naturkatastrophen sind nicht erfasst. Es gibt also Menschen, die vor dem sicheren Tod fliehen ohne Flüchtlinge zu sein. Diese Menschen haben aber immer noch ein Recht auf subsidären Schutz. Wenn man den BAMF-Daten glaubt, machen Menschen mit “gutem” Fluchtgrund also schon die Mehrheit der Menschen, die einen Antrag stellen, aus. Menschen ohne solch einen Grund stellen ca. 1/4 der Antragssteller (bitte beachten: das sind keine Ukrainer in den Daten).
Just published a post on how you can compile #Rust to #WebAssembly for use with #Webpack, #Nodejs and #Deno. There's also an included repository and CodeSandbox demo. Take a look!
#JavaScript#Node#NPM#SoftwareDevelopment#Programming: "Oh, dear jest. It started as a fast test runner. But now it’s big and fat, it depends on some babel packages while the rest of your app is transpiled by a mix of esbuild and swc. Properly configuring it with ESM and TypeScript was a PhD science project.
You stop to count how many tools and parsers work on your codebase: TypeScript, esbuild, swc, babel, eslint, prettier, jest, webpack, rollup, terser. You are not sure if you missed any. You are not sure if you want to know. The level of pain is so high you forget about anything else."
When I try to contact #NPMjs to recover access to my account, I get support messages from "npm@githubsupport.com". This makes a lot of sense because the quality of support is exactly as bad as I would expect from a #Microsoft owned organization.
Union will Individualrecht auf Asyl abschaffen (www.tagesschau.de) German