|
|
@ -1,4 +1,3 @@
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
const fs = require('fs');
|
|
|
|
const fs = require('fs');
|
|
|
|
const lodash = require('lodash');
|
|
|
|
const lodash = require('lodash');
|
|
|
|
const csv = require('fast-csv');
|
|
|
|
const csv = require('fast-csv');
|
|
|
@ -24,4 +23,3 @@ csv.parseFile('chat.txt', { headers: true }, (err, data) => {
|
|
|
|
|
|
|
|
|
|
|
|
fs.writeFileSync('statistics.json', JSON.stringify(results, null, 2), 'utf-8');
|
|
|
|
fs.writeFileSync('statistics.json', JSON.stringify(results, null, 2), 'utf-8');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
```
|
|
|
|
|