0% found this document useful (0 votes)
38 views3 pages

NodeJS - DAY 02

The document discusses learning about npm, package.json, callback functions, core Node.js modules like fs and os, importing and exporting files, and installing the lodash npm package.

Uploaded by

Lokash Arora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views3 pages

NodeJS - DAY 02

The document discusses learning about npm, package.json, callback functions, core Node.js modules like fs and os, importing and exporting files, and installing the lodash npm package.

Uploaded by

Lokash Arora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DAY 2

● Learn npm init

● Understand [Link]

● [Link] – ensure a list of packages with their version


● // Analogy: list of clothes you want to purchase with size and all, it also
consists of other metadata like name and all.

● [Link] — ensure detailed of every package installed with


version, sub dependencies, store detailed, discount everything…
● it's like a detailed billed

● Both files work together to ensure smooth development for you and your
team.

● Understand Callback Functions

● Let’s understand First the Functions, Like Different ways to write functions

● Then callback Functions


● It’s like a function calling different Functions

● Core Modules of NodeJS


● There are many built-in modules in Nodejs that we can use
● [Link]

● Learn about the ‘fs’ module


→ It creates a file and writes the message inside

● Learn about the ‘os’ module


● → Learn [Link]()
● → Log username

● Write a username into a Txt file with the help of the ‘fs’ system

● [Link] ( ‘module’ )
● → It gives the result of all modules we can do with that file in the nodeJs

● [Link](filename, message, callback);

● Import Files from

● Now create a [Link]


● Import file
● [Link]( ‘notes is starting …’)

● [Link] = 5;
● [Link] = function(a,b){}

● Npm Package - lodash

● npm i lodash
● Widely used library
● Lots of functions which helps deal with data.

You might also like