Node.js: Difference between revisions

Klinger (talk | contribs)
Pigs (talk | contribs)
m Link to other pages
Line 1: Line 1:
__TOC__
__TOC__


[https://nodejs.org Node.js] is an open-source, cross-platform JavaScript runtime environment that allows developers to execute JavaScript code on the server side. Built on the V8 JavaScript engine, it enables the creation of scalable and high-performance applications, particularly for real-time web services.
[https://nodejs.org Node.js] is an open-source, cross-platform [[JavaScript]] runtime environment that allows developers to execute JavaScript code on the server side. Built on the V8 JavaScript engine, it enables the creation of scalable and high-performance applications, particularly for real-time web services.


== Setup ==
== Setup ==
Line 222: Line 222:
== Tips and tricks ==
== Tips and tricks ==
=== Example nix flake shell for Node.js development ===
=== Example nix flake shell for Node.js development ===
`flake.nix` example:
[[Flake]] example:
<syntaxhighlight lang="nix>
{{file|flake.nix|nix|
<nowiki>
{
{
   description = "example-node-js-flake";
   description = "example-node-js-flake";
Line 261: Line 262:
}
}


</syntaxhighlight>
</nowiki>
}}


=== Using nodePackages with a different node version ===
=== Using nodePackages with a different node version ===