Skip to content

Commit a82292e

Browse files
committed
Update nodejs readme
1 parent 474e9e9 commit a82292e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nodejs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: NodeJS
33
description: Node.js cheatsheet
44
created: 2020-01-14
5-
updated: 2022-10-8
5+
updated: 2022-10-9
66
---
77

88
## 1. Create a Nodejs project and install dependent packages
@@ -17,7 +17,7 @@ npm install <package-name> // Installs a package from NPM’s own repository.
1717
npm install <git remote url>
1818

1919
npm update <package-name> // This will update the specified package.
20-
// If no package name is specified, all packages in the specified location (global or local) will be updated.
20+
2121

2222
npm uninstall <package-name> // This uninstalls a package, completely removing everything npm installed on its behalf also removes the package from the dependencies, devDependencies, optionalDependencies, and peerDependencies objects in your package.json.
2323

@@ -27,8 +27,8 @@ npm install -D <package-name>
2727

2828
### Arguments
2929

30-
`--global` or `-g` : to install the package globally
31-
`--production` : npm will not install modules listed in devDependencies
30+
`--global` or `-g` : used to install a package globally
31+
`--production` : This argument will not install modules listed in devDependencies
3232

3333

3434
## 2. How to execute NodeJS file
@@ -120,6 +120,6 @@ console.warn('warning message'); //same as console.error
120120
console.count(); //It is used to count the number of times a specific label has been called.
121121
console.clear(); //It is used to clear the console history.
122122
console.time(); //It is used to get the starting time of an action.
123-
console.timeEnd(); //It is used to get the end time of specific action.
123+
console.timeEnd(); //This function is used to get the end time of specific action.
124124
console.dir(); //It use util.inspect() on object and prints the resulting string to stdout.
125125
```

0 commit comments

Comments
 (0)