Skip to main content

Base include for utilities, build and docs

This package works with DenoIt is unknown whether this package works with Cloudflare Workers
JSR Score
58%
Published
2 weeks ago (0.4.9)
class AppConstantsService

Constructors

new
AppConstantsService()

Static Properties

readonly
env: { isTest: boolean; isProduction: boolean; isDevelopment: boolean; isRepl: boolean; isDebug: boolean; }
readonly
libUtilitiesConstants: { headers: { correlationId: string; requestId: string; responseTime: string; }; }
readonly
paths: { n: string; p: string; }[]
readonly
validEnvs: string[]
private
_product: ProductJson | undefined

Static Methods

Will throw Error if:

  • join(Deno.cwd(), 'deno.json') does not exist or not readable
  • Text from file is not parsable as JSON.
  • JSON does not have a name and version property.

Add Package

deno add @redstinkcreature/lib-utilities

Import symbol

import { AppConstantsService } from "@redstinkcreature/lib-utilities";