are we in development or production

npm install runtime-context
5 downloads in the last week
20 downloads in the last month


are we in development or production. designed to work in both the browser and node. In node it just exports process.env.NODE_ENV while in the browser it'll assume production unless either localStorage.getItem('runtime-context') has a value or the url is localhost:3000 - localhost:3999. This is because in certain browsers you don't have a good way to tell it otherwise and those certain browsers only ever get used in production anyway.


With component, packin or npm

$ {package mananger} install jkroso/runtime-context

then in your app:

var context = require('runtime-context')

Running the tests

Just run make. It will install and start a development server leaving the tests waiting for you at

npm loves you