🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

heroku-node

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-node

run node on heroku with saner defaults for memory management.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
53
-45.92%
Maintainers
2
Weekly downloads
 
Created
Source

heroku-node

As of node 2, the garbage collection defaults have changed such that 1.5 GB is consumed before garbage collection will occur. This is especially problematic on platforms such as heroku which will force your application to start swapping well before that limit is reached. Heroku provides $WEB_MEMORY to let you know what that limit is. This wraps node to inform it of that limit.

Installation

npm install -S heroku-node

Usage

Use heroku-node foo or whatever your application is called for your npm start script. If you're using a Procfile, be sure to include the path, node_modules/.bin/heroku-node. Essentially, use heroku-node wherever you'd use plain old node.

Keywords

heroku

FAQs

Package last updated on 31 Oct 2015

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