UNPKG

detect-environment

Version:

Detect environments in JavaScript similar to the way Laravel does

35 lines (26 loc) 1.44 kB
[![npm version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] # Detect Environment Detect environment is a tool for identifying which environment the application is running in and is heavily inspired by the [laravel](http://laravel.com/docs/configuration#environment-configuration) environment configuration. ## Installation You can install `detect-environment` using npm. ```sh $ npm install --save-dev detect-environment ``` ## Getting started Check out the [guides](guides/) to get started. [npm-image]: https://img.shields.io/npm/v/detect-environment.svg?style=flat-square [travis-image]: https://img.shields.io/travis/whitneyit/detect-environment.svg?style=flat-square [coveralls-image]: https://img.shields.io/coveralls/whitneyit/detect-environment.svg?style=flat-square [license-image]: https://img.shields.io/npm/l/detect-environment.svg?style=flat-square [downloads-image]: https://img.shields.io/npm/dm/detect-environment.svg?style=flat-square [npm-url]: https://npmjs.org/package/detect-environment [travis-url]: https://travis-ci.org/whitneyit/detect-environment [coveralls-url]: https://coveralls.io/r/whitneyit/detect-environment?branch=master [license-url]: LICENSE.md [downloads-url]: https://npmjs.org/package/detect-environment