Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26571

TiAPI: Global process object compatible with Node.js

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 8.1.0
    • Component/s: TiAPI
    • Labels:
      None

      Description

      Node has a top-level global process object which we should attempt to emulate to some degree. A large amount of it's API is not particularly relevant to us, but for compatibility reasons we should support/expose it and try to implement as much as we can that makes sense.

      https://nodejs.org/api/process.html

      Notable are:

      • process.arch - equivalent to Ti.Platform.architecture
      • process.cwd()
      • process.debugPort
      • process.hrtime([time])
      • process.mainModule
      • process.memoryUsage()
      • process.nextTick(callback[, ...args])
      • process.pid
      • process.platform - Probably equivalent to Ti.Platform.name
      • process.release
      • process.setUncaughtExceptionCaptureCallback(fn)
      • process.stderr
      • process.stdin
      • process.stdout
      • process.title
      • process.uptime()
      • process.version - Equivalent to Ti.version
      • process.versions

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              cwilliams Christopher Williams
              Reviewer:
              Jan Vennemann
              Tester:
              Samir Mohammed
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code