spawn.js 608 B

123456789101112131415161718
  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')