Skip to content

Commit

Permalink
add: background image and some other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
selsayed25 committed Feb 24, 2024
1 parent 73865d2 commit 07b71b4
Show file tree
Hide file tree
Showing 22 changed files with 400,474 additions and 79 deletions.
27 changes: 12 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
const parse = require('csv-parse')
const csv = require('csv-parser')
const fs = require('fs')
const results = [];

const csvData = [];

fs.createReadStream(__dirname + '/diversity_school.csv')
.pipe(
parse({
delimeter: ','
})
)
.on('data', function (dataRow) {
csvData.push(dataRow);
})
.on('end', function () {
console.log(csvData)
});
fs.createReadStream('data/diversity_school.csv')
.pipe(csv())
.on('data', (data) => results.push(data))
.on('end', () => {
console.log(results);
// [
// { NAME: 'Daffy Duck', AGE: '24' },
// { NAME: 'Bugs Bunny', AGE: '22' }
// ]
});
Loading

0 comments on commit 07b71b4

Please sign in to comment.