NodeJS is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, Linux and FreeBSD.Atau tanya dari websitenya langsung, lebih sedikit ...
Node.js provides an event-driven architecture and a non-blocking I/O API that optimizes an application's throughput and scalability. These technologies are commonly used for real-time applications.
Node.js uses the Google V8 JavaScript engine to execute code, and a large percentage of the basic modules are written in JavaScript. Node.js contains a built-in library to allow applications to act as a Web server without software such as Apache HTTP Server or IIS.
NodeJS® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.NodeJS berbeda dengan bahasa pemrograman web lainnya seperti PHP,JSP,ASP. Untuk lebih jelas mengenai perbedaan NodeJS dengan bahasa lainnya sobat bisa Googling XD. Oke itu aja pengenalan NodeJS, kali ini saya bukan mau memperkenalkan NodeJS tapi ingin memposting tutorial yang berhubungan dengan NodeJS.
npm install <nama-module>contoh : npm install express , atau sobat bisa mengandalkan yang namanya package.json . File package.json yang telah dibuat didalam folder project pada bagian dependencies diisi dengan nama module/package yang akan diinstall, contoh :
{
"name": "application-name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "^3.4.8",
"ejs": "*"
}
}
npm uninstall <nama-module>
Labels: Programming, Tips, Web Development