Axel Rauschmayer
Axel Rauschmayer
@ApolloTang: > could you please explain why underscore-casing does not work for default import and why it is not a good choice for functions? The common practice for JavaScript is...
This could work: https://docs.rs/fancy-regex/latest/fancy_regex/struct.Regex.html#method.captures_from_pos
I have an additional requirement: I’d like to match at _exactly_ a given index. That could be achieved via either a flag (JavaScript has `y` for this purpose) or a...
Yes, this is why the readme starts with “Experimental code – beware”. It is a proof of concept, neither efficient nor bug-free. Thanks for reporting the bugs, though! I will...
> Yes. It's kinda a hacky way. Ah, clever! (I overlooked that in the readme.) I thought you wanted people to add properties to the Proxy, but specifying `this` via...
If I may – I have one more question about this line: ```js const out = require('child_process').spawnSync(bin, args, {...this}) ``` AFAICT, strict mode should be enabled in this module because...
Without `Object.assign()`, the code would be: ```js let out = cat('file.txt') console.log(`Content: ${out.stdout}`) ``` I’d be OK with that, but it is more verbose.
I’ve used tinysh some more and I now agree with you that returning strings (or something string-like) is convenient. It therefore may make sense to switch from `spawnSync()` to `execFileSync()`:...
Ah, cool, I wasn’t aware you wrote `zx`, too! I’ve been aware of that library for a while. Quite useful.
For reference, this is what an error message looks like in the TS Playground: ``` Property 'hello' does not exist on type '"abc"'.(2339) ``` This is what it looks like...