Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

README.md 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # process-on-spawn
  2. [![Travis CI][travis-image]][travis-url]
  3. [![Greenkeeper badge][gk-image]](https://greenkeeper.io/)
  4. [![NPM Version][npm-image]][npm-url]
  5. [![NPM Downloads][downloads-image]][downloads-url]
  6. [![MIT][license-image]](LICENSE)
  7. Execute callbacks when child processes are spawned.
  8. ## Usage
  9. ```js
  10. 'use strict';
  11. const processOnSpawn = require('process-on-spawn');
  12. processOnSpawn.addListener(opts => {
  13. opts.env.CHILD_VARIABLE = 'value';
  14. });
  15. ```
  16. ### listener(opts)
  17. * `options` \<[Object]\>
  18. * `execPath` \<[string]\> The command to run.
  19. * `args` \<[string\[\]][string]\> Arguments of the child process.
  20. * `cwd` \<[string]\> Current working directory of the child process.
  21. * `detached` \<[boolean]\> The child will be prepared to run independently of its parent process.
  22. * `uid` \<[number]\> The user identity to be used by the child.
  23. * `gid` \<[number]\> The group identity to be used by the child.
  24. * `windowsVerbatimArguments` \<[boolean]\> No quoting or escaping of arguments will be done on Windows.
  25. * `windowsHide` \<[boolean]\> The subprocess console window that would normally be created on Windows systems will be hidden.
  26. All properties except `env` are read-only.
  27. ### processOnSpawn.addListener(listener)
  28. Add a listener to be called after any listeners already attached.
  29. ### processOnSpawn.prependListener(listener)
  30. Insert a listener to be called before any listeners already attached.
  31. ### processOnSpawn.removeListener(listener)
  32. Remove the specified listener. If the listener was added multiple times only
  33. the first is removed.
  34. ### processOnSpawn.removeAllListeners()
  35. Remove all attached listeners.
  36. [npm-image]: https://img.shields.io/npm/v/process-on-spawn.svg
  37. [npm-url]: https://npmjs.org/package/process-on-spawn
  38. [travis-image]: https://travis-ci.org/cfware/process-on-spawn.svg?branch=master
  39. [travis-url]: https://travis-ci.org/cfware/process-on-spawn
  40. [gk-image]: https://badges.greenkeeper.io/cfware/process-on-spawn.svg
  41. [downloads-image]: https://img.shields.io/npm/dm/process-on-spawn.svg
  42. [downloads-url]: https://npmjs.org/package/process-on-spawn
  43. [license-image]: https://img.shields.io/npm/l/process-on-spawn.svg
  44. [Object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
  45. [string]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type
  46. [boolean]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type
  47. [number]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type