@skazka/env
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -1,20 +0,20 @@ | ||
'use strict'; | ||
"use strict"; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.isTest = exports.isDevelopment = exports.isProduction = exports.TEST = exports.DEVELOPMENT = exports.PRODUCTION = exports.env = exports.default = void 0; | ||
var PRODUCTION = 'production'; | ||
exports.PRODUCTION = PRODUCTION; | ||
var DEVELOPMENT = 'development'; | ||
exports.DEVELOPMENT = DEVELOPMENT; | ||
var TEST = 'test'; | ||
exports.TEST = TEST; | ||
var env = process.env.NODE_ENV; | ||
exports.env = exports.default = env; | ||
var isProduction = env === PRODUCTION; | ||
exports.isProduction = isProduction; | ||
var isDevelopment = ![PRODUCTION, TEST].includes(env); | ||
exports.isDevelopment = isDevelopment; | ||
var isTest = env === TEST; | ||
exports.default = env; | ||
exports.env = env; | ||
exports.PRODUCTION = PRODUCTION; | ||
exports.DEVELOPMENT = DEVELOPMENT; | ||
exports.TEST = TEST; | ||
exports.isProduction = isProduction; | ||
exports.isDevelopment = isDevelopment; | ||
exports.isTest = isTest; | ||
exports.isTest = isTest; |
{ | ||
"name": "@skazka/env", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Node.js Environment", | ||
"scripts": { | ||
"build": "cross-env NODE_ENV=production rollup -c", | ||
"clean": "rimraf lib dist es", | ||
"prebuild": "yarn clean" | ||
"build": "cross-env NODE_ENV=production gulp" | ||
}, | ||
"main": "lib/index.js", | ||
"unpkg": "dist/index.js", | ||
"module": "es/index.js", | ||
"files": [ | ||
"dist", | ||
"lib", | ||
"es" | ||
"lib" | ||
], | ||
@@ -18,0 +12,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1742
3
18