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.

12345678910111213141516171819202122232425262728
  1. 'use strict'
  2. const NYC = require('../index.js')
  3. const config = JSON.parse(
  4. process.env.NYC_CONFIG ||
  5. /* istanbul ignore next */ '{}'
  6. )
  7. config.isChildProcess = true
  8. config._processInfo = {
  9. pid: process.pid,
  10. ppid: process.ppid,
  11. parent: process.env.NYC_PROCESS_ID || null
  12. }
  13. if (process.env.NYC_PROCESSINFO_EXTERNAL_ID) {
  14. config._processInfo.externalId = process.env.NYC_PROCESSINFO_EXTERNAL_ID
  15. delete process.env.NYC_PROCESSINFO_EXTERNAL_ID
  16. }
  17. if (process.env.NYC_CONFIG_OVERRIDE) {
  18. Object.assign(config, JSON.parse(process.env.NYC_CONFIG_OVERRIDE))
  19. process.env.NYC_CONFIG = JSON.stringify(config)
  20. }
  21. ;(new NYC(config)).wrap()