NodeJS: Difference between revisions

32 bytes removed ,  10 February 2023
 
Line 142: Line 142:
[https://www.npmjs.com/package/argparse argparse]
[https://www.npmjs.com/package/argparse argparse]


This is a port of python's argparse. However, it does not support configuration files. I usually use this snippet to parse configuration files:
This is a port of python's argparse. However, it does not support configuration files.  
{{hidden | Example |
<syntaxhighlight lang="python">
<syntaxhighlight lang="python">
const parser = new ArgumentParser({
const parser = new ArgumentParser({
Line 169: Line 170:
})();
})();
</syntaxhighlight>
</syntaxhighlight>
}}


===node-worker-threads-pool===
===node-worker-threads-pool===
[https://www.npmjs.com/package/node-worker-threads-pool Link]   
[https://www.npmjs.com/package/node-worker-threads-pool Link]   
A cool thread pool implementation.
A cool thread pool implementation.