@bconnorwhite/environment
v3.0.0
Published
A utility for checking node environment.
Readme
If I should maintain this repo, please ⭐️
DM me on Twitter if you have questions or suggestions.
Installation
yarn add @bconnorwhite/environmentnpm install @bconnorwhite/environmentpnpm add @bconnorwhite/environmentUsage
import environment, { inProduction, inDevelopment, isProduction, isDevelopment, getEnvironment } from "@bconnorwhite/environment";
// environment: "development" | "production";
// inProduction: boolean;
// inDevelopment: boolean;
// getEnvironment: (env?: string) => "development" | "production";
// isProduction: (env?: string) => boolean;
// isDevelopment: (env?: string) => boolean;- autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.
