提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
608 B

  1. /**
  2. * @module spawn
  3. * @author Toru Nagashima
  4. * @copyright 2015 Toru Nagashima. All rights reserved.
  5. * See LICENSE file in root directory for full license.
  6. */
  7. 'use strict'
  8. // ------------------------------------------------------------------------------
  9. // Public Interface
  10. // ------------------------------------------------------------------------------
  11. /**
  12. * Launches a new process with the given command.
  13. * This is {@link ./spawn-posix.js:spawn} or {@link ./spawn-win32.js:spawn}
  14. * @private
  15. */
  16. module.exports = process.platform === 'win32' ? require('./spawn-win32') : require('./spawn-posix')