Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules

somefile.txt
17 changes: 17 additions & 0 deletions commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Installing Nodemon (GLOBAL)
npm install -g nodemon

Install Chalk (Local)
npm install chalk

Install GIT

Pull branch
git pull origin day-1

Install PM2
npm install -g pm2


Start PM2 application
pm2 start pm2.json
4 changes: 0 additions & 4 deletions example-buffer.js

This file was deleted.

10 changes: 0 additions & 10 deletions example-fs.js

This file was deleted.

4 changes: 0 additions & 4 deletions example-http.js

This file was deleted.

5 changes: 0 additions & 5 deletions example-os.js

This file was deleted.

18 changes: 0 additions & 18 deletions example-path.js

This file was deleted.

1 change: 0 additions & 1 deletion example-path.txt

This file was deleted.

File renamed without changes.
49 changes: 49 additions & 0 deletions fs-example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
const fs = require("fs");

// fs.open("somefile.txt", "r+", (err, response)=>{
// if(err)
// {
// console.error(err, "Error Occured");
// return false;
// }
// console.log("File opened successfully!!!");
// })

// fs.stat("somefile.txt", (err, response)=>{
// if(err)
// {
// console.error(err, "Error Occured");
// return false;
// }
// console.log(response);
// console.log(response.isFile())
// console.log(response.isDirectory())
// })

// fs.writeFileSync("somefile.txt", "Hello World!!!");
// console.log("File write completed.")

// const contents = fs.readFileSync("somefile.txt", "utf-8");
// console.log("contents", contents)

// fs.rename("somefile.txt", "example.txt", ()=>{
// console.log("file renamed.")
// });

// fs.readFile("person.json", "utf-8", (err, data)=>{
// if(err)
// {
// console.error("Error Occured.");
// return false;
// }
// const jsoncontent = JSON.parse(data);
// console.log(jsoncontent.address.flatno);
// })

const content = {
name : "Amit",
company : "Edureka",
hello : ()=>{}
}

console.log(content, JSON.stringify(content))
8 changes: 8 additions & 0 deletions home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<html>
<head>

</head>
<body>
Hello World!!!
</body>
</html>
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const chalk = require('chalk');

console.log(chalk.green('Hello world!'));

console.log(chalk.blue('Hello') + ' World' + chalk.red('!'));
Loading