i have the following code:
'use strict';
// const exec = require('child_process').exec
var brainfuck = require('brainfuck')
let source = '>,[>,]<[.<]'
brainfuck.exec(source, function(err, output) {
console.log(process.argv)
console.log(output)
})
it is an brainfuck interpreter, that take inputs until a 'null' value is passed, so the code stops, then all code is reversed, printing to user.
when i run, i'm asked to pass values from TERMINAL, i do want to automate this inputs without 'human interation', as i wanna run thousands of tests, so my code will decide what to pass as inputs when asked.
EDIT3: brainfuck interpreter i'm using: github.com/rajkissu/brainfuck
which is a javascript interpreter