NodeJS: Difference between revisions
(One intermediate revision by the same user not shown) | |||
Line 86: | Line 86: | ||
<syntaxhighlight lang="js"> | <syntaxhighlight lang="js"> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Running other processes=== | ===Running other processes=== | ||
Line 143: | 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. | 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 170: | 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. |