You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
344 B
15 lines
344 B
|
4 years ago
|
#!/usr/bin/env node
|
||
|
|
let input = [];
|
||
|
|
|
||
|
|
process.stdin.resume();
|
||
|
|
process.stdin.setEncoding('utf8');
|
||
|
|
process.stdin.on('data', (data) => input.push(data));
|
||
|
|
process.stdin.on('end', () => {
|
||
|
|
const str = input.join('');
|
||
|
|
const events = JSON.parse(str);
|
||
|
|
|
||
|
|
console.log(
|
||
|
|
JSON.stringify(events.map(({ profilePicture, ...event }) => event)),
|
||
|
|
);
|
||
|
|
});
|