|13 days ago||22 days ago|
|Apache License 2.0||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Do you ever use node without express (or an equivalent framework? ;
2 projects | reddit.com/r/node | 28 Nov 2021
For scripting you should have a look at: https://github.com/google/zx It's nodejs but with some nice syntax sugar for scripting.
Passing a dynamic value to package.json scripts
1 project | reddit.com/r/Angular2 | 10 Nov 2021
Umm, for any complex script configuration you can use https://github.com/google/zx other than that it depends on your environment and how are you supplying the value to the script
Scripting Languages of the Future
9 projects | news.ycombinator.com | 7 Nov 2021
I like the idea of the topic, exploring it. But the author feels off in a number of places.
> What TypeScript showed is that you could join together the idea of a flexible lightweight (and optional!) type system onto an existing programming language, and do so successfully. . . .The question then is - what if you created a programming language from the start to have this kind of support?
Personally I just don't think languages matter very much. They're very similar, by & large. They have different tooling, packaging, somewhat different looks/feels for executing code, and their standard libraries are different. But TypeScript is popular & fast at least 90% because it is JS, because it works with JS things. Arguing that we should try to recreate TypeScript apart from JS sounds like a mind blowing waste of time. Also, Deno has good integrated TypeScript support.
One of the main issues I see with easy-parallelism is that it's too easy: there's too many cases for uncontrolled parallelism. Throwing tarn.js or other worker-pools at problems seems all too common. But one is still left stitching together each pool/stage of work. I'd like to see SEDA like architectures emerge, and perhaps get added to something like ZX standard library.
Underwhelmed by Bash functions? Maybe you're using them wrong. I was.
7 projects | reddit.com/r/programming | 31 Oct 2021
A fourth twist is to take off the functional hat and instead use an obscure corner of OOP: multiple inheritance. This isn't natively supported in JS, but some libraries use the technique in the wild (e.g. zx monkeypatches Promises with a facade over the ChildProcess interface). This differs from union types because it's two things simultaneously (rather than one OR the other), and it's up to the consumer to then await it or map over the functor if it needs to, or just access properties synchronously.
I haven't tried it myself, but zx looks like a really simple way to get up and running.
Hacking Fish Script In Emacs
10 projects | dev.to | 7 Oct 2021
A single person answered 76k questions about SQL on StackOverflow. Averaging 22.8 answers per day, every day, for the past 8.6 years.
3 projects | reddit.com/r/programming | 24 Sep 2021
google made this to replace bash: https://github.com/google/zx
1 project | dev.to | 10 Sep 2021
Wednesday Links - Edition 2021-09-01
1 project | dev.to | 1 Sep 2021
zx - bash in JS (1 min)🖥️ https://github.com/google/zx
Implement cool features for my static site generator
3 projects | dev.to | 29 Oct 2021
Implementing those 3 features was quite simple. For metadata and markdown file, I mainly used an external library: showdown to convert from markdown files to html files as well as parsing metadata from markdown files. However, implementing the support for static assets such as images is a bit more interesting. I had to use another external library called fs-extra to copy assets folder from user to the dist folder. I also had to create another new class called CopyFolder where I used fs.copy method to copy assets folder
Writing JS-based Bash scripts with zx
6 projects | dev.to | 12 Aug 2021
Why Storing Files in the Database Is Considered Bad Practice
2 projects | dev.to | 22 Jun 2021
Node.js has the built-in fs module (fs/promises with async/await) which makes it easy to interact with the file system. On top of that, there are a few convenient libraries such as fs-extra and findit that make common tasks straightforward.
Batch with Node.js
1 project | dev.to | 27 Apr 2021
For this purpose we'll use fs-extra since copy/paste seems like not supported by fs API.
How to Write File-Based Tests With Real Files
8 projects | dev.to | 21 Apr 2021
fs-extra to read files after running the scaffolding tool.
[AskJS] What is the one npm package that changed your life?
Generate RSS Feed with Node.js
2 projects | dev.to | 17 Feb 2021
Linking local files and folders
1 project | reddit.com/r/Notion | 1 Jan 2021
Using config files for multiple environment variables in Cypress
1 project | dev.to | 14 Oct 2020
Something I forgot: You may need to install the package fs-extra as a pre-requisite (npm i --save-dev fs-extra)
Automate Chrome extension publish using an automated script
1 project | dev.to | 5 Oct 2020
fs-extra - npm -> fs-extra will help us to read our zip file into the buffer
What are some alternatives?
graceful-fs - fs with incremental backoff on EMFILE
rimraf - A `rm -rf` util for nodejs
fs-jetpack - Better file system API for Node.js
shelljs - :shell: Portable Unix shell commands for Node.js
chokidar - Minimal and efficient cross-platform file watching library
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell
mkdirp - Recursively mkdir, like `mkdir -p`, but in node.js
alias-tips - An oh-my-zsh plugin to help remembering those aliases you defined once
nx - Smart, Extensible Build Framework
globby - User-friendly glob matching