stdout nodejs

  1. Use the process global object to access the stdout property.
  2. Use the write() method to write data to the standard output.
  3. Pass the data to be written as an argument to the write() method.
  4. Optionally, use the end() method to signal the end of the data to be written to the standard output.