# is-heroku **Repository Path**: mirrors_stephenplusplus/is-heroku ## Basic Information - **Project Name**: is-heroku - **Description**: Check if your code is running on Heroku - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-04-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # is-heroku [![Build Status](https://travis-ci.org/sindresorhus/is-heroku.svg?branch=master)](https://travis-ci.org/sindresorhus/is-heroku) > Check if your code is running on Heroku ## Install ```sh $ npm install --save is-heroku ``` ## Usage ```js var isHeroku = require('is-heroku'); // on you local computer console.log(isHeroku); //=> false // on Heroku console.log(isHeroku); //=> true ``` Add a [environment variable](https://devcenter.heroku.com/articles/config-vars) first to improve the detection: ```sh $ heroku config:set HEROKU=1 ``` ## License MIT © [Sindre Sorhus](http://sindresorhus.com)