1.0.0 • Published 10 years ago
targetenv v1.0.0
targetenv.js
This module is for doing things conditionally based on the environment you're
targeting. It uses the build tool itself (browserify, webpack) instead of
relying on examining the environment (for example, module.exports
, etc).
Usage
var targetEnv = require('targetenv');
if (targetEnv.isBrowser) {
// Do something.
}
Properties
How
The module's package.json tells your build tool (browserify, webpack) to use a different entry point (which can be examined).
1.0.0
10 years ago