spawn.js 603 B

1234567891011121314151617181920
  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 = require(
  17. process.platform === "win32" ? "./spawn-win32" : "./spawn-posix"
  18. )