Host Capitol Announces NodeJS Availability
Host Capitol is happy to announce that NodeJS is now supported and included on every Linux SSD Shared Hosting, Linux SSD Reseller Hosting, and Semi-Dedicated Hosting plan, without any additional cost!
To access NodeJS, simply log into your cPanel account and navigate to the Software section.
Currently supported NodeJS versions are: 6.13.1, 8.10.0, 9.9.0
WHAT IS NODE.JS?
Node.js® is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
In simple words:
- Node.js is a free open source server framework
- Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
- Node.js uses JavaScript on the server
WHY NODE.JS?
Node.js uses asynchronous programming!
A common task for a web server can be to open a file on the server and return the content to the client.
Here is how PHP or ASP handles a file request:
- Sends the task to the computer’s file system.
- Waits while the file system opens and reads the file.
- Returns the content to the client.
- Ready to handle the next request.
Here is how Node.js handles a file request:
- Sends the task to the computer’s file system.
- Ready to handle the next request.
- When the file system has opened and read the file, the server returns the content to the client.
Node.js eliminates the waiting, and simply continues with the next request.
Node.js runs single-threaded, non-blocking, asynchronously programming, which is very memory efficient.
WHAT CAN NODE.JS DO?
- Node.js can generate dynamic page content
- Node.js can create, open, read, write, delete, and close files on the server
- Node.js can collect form data
- Node.js can add, delete, modify data in your database
WHAT IS A NODE.JS FILE?
- Node.js files contain tasks that will be executed on certain events
- A typical event is someone trying to access a port on the server
- Node.js files must be initiated on the server before having any effect
- Node.js files have extension “.js”