0.1.10 • Published 2 years ago
@holographxyz/environment v0.1.10
Description
The Holograph Protocol has different builds for different development environment types. This package helps to easily declare the current environment.
Development
Getting Started
- Install package with
npm i @holographxyz/environment
- Using the package:
- TypeScript:
import { getEnvironment } from '@holographxyz/environment'
- JavaScript:
const { getEnvironment } = require('@holographxyz/environment');
- TypeScript:
- 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.