Echo JS 0.11.0

<~>

tracker1 comments

tracker1 2321 days ago. link 1 point
Alternatively...

    const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
    ...
    await delay(5000);
tracker1 2324 days ago. link 1 point
Interesting app... needs a few improvements though.

* needs radio streams.
* better persistence (sqlite?)
* large local directory add, app blows up

Definitely some potential here.
tracker1 2324 days ago. link 1 point
Note: this is GPL3 licensed, and you should only use this for open-source web applications that are also GPl3.
tracker1 2328 days ago. link 2 points
Can't pull up the site at work, may be down... There's no real point to "Web Safe" color codes these days.  If it's referring to sticking to matched color points, which was more important in the days were 256 color displays and graphics controllers were much more common.
tracker1 2328 days ago. link 1 point
Changed the title as this is not "Node Middleware" it is "Express Middleware" ... Node middleware would be something like plugging loaders into require, or things like the `esm` module.
tracker1 2329 days ago. link 1 point
I think that it's of some value for libraries... the definitions file(s) for use with VS Code are really nice, even when using plain JS in your end project.

Inside some projects, it may or may not provide value, as TFA mentions, there's no io checks to/from APIs.  Beyond this, it doesn't negate the need for testing and coverage.  In some scenarios, type complexity can be a lot of effort for very little gain.

Aside: I've been looking at some of the GraphQL libraries with great interest... though I'm unsure of pieces of authentication and updates, it's definitely a nice approach to certain types of data and workflows and does (optionally depending on library) do type checking against definitions.
tracker1 2331 days ago. link 1 point
Personally, I don't support any version of IE at this point.  It's EOL, replaced and a security risk.  Not to mention the shims/shivs/transforms needed for ES2017+ are massive.  It's a  target that's not worth taking for the most part.
tracker1 2332 days ago. link 1 point
Another use case worth mentioning is creating reports from HTML/SVG/Canvas output to PDF for download.  It's compute heavy, but often easier than trying to shoe-horn a reporting module, or use PDF primitive libraries directly.
tracker1 2332 days ago. link 1 point
I'm not sure what "at Free" means in this context, doesn't seem to be any kind of service or relevance here.

Beyond this, for node/typescript projects, generally speaking, you should use a .dockerignore file to exclude the things that shouldn't be copied into the container.  From there, you should use multi-stage containers for your build pipeline... copy the entire project/solution or set of projects into a start or source container, then setup build containers for each portion (client, server, etc) and a final runtime container exposed for deployment.
[more]