rangoo94/bestest

View on GitHub
packages/detect-environment/lib/getEnvironmentDetails.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { EnvironmentDetailsInterface } from './interfaces/EnvironmentDetailsInterface'
import { getBrowserEnvironmentDetails } from './getBrowserEnvironmentDetails'
import { getNodejsEnvironmentDetails } from './getNodejsEnvironmentDetails'
import { getEnvironmentType } from './getEnvironmentType'

function getEnvironmentDetails (): EnvironmentDetailsInterface {
  return {
    environment: getEnvironmentType(),
    nodejs: getNodejsEnvironmentDetails(),
    browser: getBrowserEnvironmentDetails()
  }
}

export {
  getEnvironmentDetails
}