-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.js
More file actions
29 lines (24 loc) · 793 Bytes
/
script.js
File metadata and controls
29 lines (24 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// let json = [];
// let output = [];
// output = json.map(object => ({
// name: object.name,
// position: "2021 Batch",
// image: "https://swaraj-jain.github.io/ROBOISM-Webpage" + object['image-link'].slice(1),
// linkedin: object.linkedin == '' ? undefined : object.linkedin,
// github: object.github == '' ? undefined : object.github,
// email: object.mail == '' ? undefined : object.mail,
// }));
// console.log(JSON.stringify(output));
// let csv = ``;
// let output = csv.split('\n').map(row => {
// row = row.split(',');
// return {
// name: row[0],
// position: row[1],
// image: row[5],
// linkedin: row[3],
// github: row[4],
// email: row[2]
// }
// });
// console.log(JSON.stringify(output));