Nostradamus Prophecy Machine
Have ideas to improve npm?Join in the discussion! »

@bconnorwhite/environment
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

@bconnorwhite/environment

dependencies typescript npm

A utility for checking node environment.

yarn add @bconnorwhite/environment

API

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;

Keywords

none

Install

npm i @bconnorwhite/environment

DownloadsWeekly Downloads

0

Version

2.1.1

License

MIT

Unpacked Size

2.4 kB

Total Files

6

Last publish

Collaborators

  • avatar