JSPM

  • Created
  • Published
  • Downloads 4698
  • Score
    100M100P100Q124166F
  • License Apache-2.0

A package containing utility functions to handle environment specific processes

Package Exports

  • @stryke/env
  • @stryke/env/ci-checks
  • @stryke/env/environment-checks
  • @stryke/env/get-env-paths
  • @stryke/env/index
  • @stryke/env/load-env
  • @stryke/env/package.json
  • @stryke/env/providers
  • @stryke/env/runtime-checks
  • @stryke/env/types

Readme

env

A package containing utility functions to handle environment specific processes

Installing

Using pnpm:

pnpm add -D stryke/env
Using npm
npm install -D stryke/env
Using yarn
yarn add -D stryke/env

Reduced Package Size

This project uses tsup to package the source code due to its ability to remove unused code and ship smaller javascript files thanks to code splitting. This helps to greatly reduce the size of the package and to make it easier to use in other projects.

Development

This project is built using Nx. As a result, many of the usual commands are available to assist in development.

Building

Run nx build env to build the library.

Running unit tests

Run nx test env to execute the unit tests via Jest.

Linting

Run nx lint env to run ESLint on the package.