Socket
Socket
Sign inDemoInstall

@glimmer/env

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/env

Glimmer application environment variables stub


Version published
Weekly downloads
129K
decreased by-7.13%
Maintainers
1
Weekly downloads
 
Created

What is @glimmer/env?

@glimmer/env is a utility package designed for use with Glimmer.js, a UI component library. It provides environment-specific utilities that help in determining the current environment (like development or production) and conditionally executing code based on that environment.

What are @glimmer/env's main functionalities?

isDevelopment

The `isDevelopment` function checks if the current environment is set to development. This is useful for running development-specific code.

const { isDevelopment } = require('@glimmer/env');

if (isDevelopment()) {
  console.log('This is a development environment');
}

isProduction

The `isProduction` function checks if the current environment is set to production. This is useful for running production-specific code.

const { isProduction } = require('@glimmer/env');

if (isProduction()) {
  console.log('This is a production environment');
}

isTesting

The `isTesting` function checks if the current environment is set to testing. This is useful for running testing-specific code.

const { isTesting } = require('@glimmer/env');

if (isTesting()) {
  console.log('This is a testing environment');
}

Other packages similar to @glimmer/env

FAQs

Package last updated on 19 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc