globe_env 1.0.0 copy "globe_env: ^1.0.0" to clipboard
globe_env: ^1.0.0 copied to clipboard

A package which provides an interface around the available Globe Environment variables.

Globe Env #

A package which provides an interface around the available Globe Environment variables.

This package is only intended for IO environments (e.g. server).

Usage #

Install the package:

dart pub add globe_env
copied to clipboard

API #

  • GlobeEnv.port: Attempts to parse the PORT environment vaiable as an int. Defaults to 8080.
  • GlobeEnv.isGlobeRuntime: Returns a boolean whether GLOBE is set as an environment variable. If true, indicates the environment is running on Globe.
  • GlobeEnv.hostname: The hostname of the application running on Globe.
  • GlobeEnv.cronId: If set, the cron job identifier which invoked the application.
  • GlobeEnv.cronName: If set, the name of the cron job which invoked the application.
  • GlobeEnv.cronSchedule: If set, the cron job schedule (e.g. * * * * *) which invoked the application.
  • GlobeEnv.cronEventId: If set, the unique cron job event ID which invoked the application.
0
likes
160
points
114
downloads

Publisher

verified publisherglobe.dev

Weekly Downloads

2024.09.08 - 2025.03.23

A package which provides an interface around the available Globe Environment variables.

Repository (GitHub)
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

meta

More

Packages that depend on globe_env