-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path13-npm.js
More file actions
21 lines (16 loc) · 700 Bytes
/
Copy path13-npm.js
File metadata and controls
21 lines (16 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//npm - global command comes with node
//npm --version
// local dependency - use it only in this particular project
//npm i <package name>
// global depencdency - use it in project
//npm install -g <package name>
// sudo npm install -g <package name> (for mac)
// package.json - manifesr file (stores important info about project/package)
// manual approach (create package.json in the root , create properties etc.)
// npm init (step by step, press enter to skip)
// npm init -y (everything default)
// const _ = require('lodash')
const items = [1, [2, [3, [4]]]]
const newItems = _.flattenDeep(items); // make multiple array into one array
console.log(newItems);
console.log("hello world");