[lang-ref] Mock input from pipe ( javascript )