runtime-context

0.1.1 • Public • Published

runtime-context

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.

Installation

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

Readme

Keywords

none

Package Sidebar

Install

npm i runtime-context

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • jkroso