npm.io
0.1.11 • Published 2 years ago

@holographxyz/environment

Licence
SEE LICENSE IN LICENSE.md
Version
0.1.11
Deps
2
Size
28 kB
Vulns
0
Weekly
0
Stars
5
Holograph

Holograph Protocol - Environment Configurations

Description

The Holograph Protocol has different builds for different development environment types. This package helps to easily declare the current environment.

Development

Getting Started
  1. Install package with npm i @holographxyz/environment
  2. Using the package:
    • TypeScript: import { getEnvironment } from '@holographxyz/environment'
    • JavaScript: const { getEnvironment } = require('@holographxyz/environment');
  3. The package also includes type definitions for: Environment.
Defining Environment

You can easily define your current environment by including HOLOGRAPH_ENVIRONMENT in your .env file, or using a branch name with the same name as the environment.

Keywords