docs: function input (args, stream) {
    const list = Array.isArray(args) ? args : args.split(' ').filter(Boolean)
    const ports = list.map(Number).filter(num)
  
    if (ports.length || !stream) {
      return Promise.resolve(ports)
    }
  
    return stdin().then(s => input(s, false))
  }