I have an array and i want to send it to a child process. But the problem is i get it in child process as a string. How can i fix it? Thanks.
parent file
const {fork} = require('child_process');
var botsList = [];
fork('./app.js', [botsList]);
child file:
var botsList = process.argv[2];
console.log(typeof botsList);
