Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

penv

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

penv - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

12

lib/penv.js

@@ -7,3 +7,3 @@ /*

*
*/
*/
var async = require('utile').async,

@@ -91,3 +91,11 @@ utile = require('utile'),

var merged = utile.mixin({}, packages[0], packages[1]);
// Add env variable
if (penv.env !== "base") {
merged.env = {
"NODE_ENV": penv.env
};
}
fs.writeFile(penv.pkgFile, JSON.stringify(merged, null, 2), next);
}
}

4

package.json
{
"name": "penv",
"version": "0.1.0",
"version": "0.1.1",
"description": "A package.json enviroment manager",

@@ -36,2 +36,2 @@ "author": "Julian Duque <julianduquej@gmail.com>",

}
}
}

@@ -65,2 +65,5 @@ # penv

"node": "0.8.x"
},
"env": {
"NODE_ENV": "staging"
}

@@ -101,2 +104,2 @@ }

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.

@@ -57,3 +57,6 @@ {

"www.staging.myawesomedomain.com"
]
}
],
"env": {
"NODE_ENV": "staging"
}
}

@@ -7,9 +7,9 @@ /*

*
*/
*/
var should = require('chai').should(),
assert = require('chai').assert,
rimraf = require('rimraf'),
assert = require('chai').assert,
rimraf = require('rimraf'),
penv = require('../lib/penv'),
path = require('path'),
fs = require('fs');
path = require('path'),
fs = require('fs');

@@ -56,6 +56,6 @@ //

function checkFixtureMatch(str, fileName, matchName) {
function checkFixtureMatch(str, fileName, matchFile) {
it(str, function () {
var file = fs.readFileSync(path.join(testRoot, fileName), 'utf8');
assert.deepEqual(JSON.parse(matchName), JSON.parse(file));
assert.deepEqual(JSON.parse(matchFile), JSON.parse(file));
});

@@ -80,2 +80,2 @@ }

});
});
});
{
"prod": {
"subdomain": "awesomeapp",
"domains": [
"myawesomedomain.com",
"www.myawesomedomain.com"
]
},
"staging": {
"subdomain": "staging-awesomeapp",
"domains": [
"staging.myawesomedomain.com",
"www.staging.myawesomedomain.com"
]
}
}
"prod": {
"subdomain": "awesomeapp",
"domains": [
"myawesomedomain.com",
"www.myawesomedomain.com"
]
},
"staging": {
"subdomain": "staging-awesomeapp",
"domains": [
"staging.myawesomedomain.com",
"www.staging.myawesomedomain.com"
]
}
}
{
"devDependencies": {
"vows": "0.5.x",
"request": "2.1.x"
"keywords": [
"cli",
"http",
"server"
],
"preferGlobal": true,
"scripts": {
"start": "node ./bin/http-server",
"test": "vows --spec --isolate",
"predeploy": "echo This will be run before deploying the app",
"postdeploy": "echo This will be run after deploying the app"
},
"bin": {
"http-server": "./bin/http-server"
},
"analyze": false,
"dependencies": {

@@ -18,22 +22,11 @@ "colors": "*",

},
"name": "http-server",
"preferGlobal": true,
"engines": {
"node": ">=0.6"
"author": "Nodejitsu <support@nodejitsu.com>",
"bin": {
"http-server": "./bin/http-server"
},
"version": "0.3.0",
"scripts": {
"start": "node ./bin/http-server",
"test": "vows --spec --isolate",
"predeploy": "echo This will be run before deploying the app",
"postdeploy": "echo This will be run after deploying the app"
"devDependencies": {
"vows": "0.5.x",
"request": "2.1.x"
},
"contributors": [
{
"name": "Marak Squires",
"email": "marak@nodejitsu.com"
}
],
"author": "Nodejitsu <support@nodejitsu.com>",
"license": "MIT",
"description": "a simple zero-configuration command-line http server",

@@ -48,8 +41,15 @@ "repository": {

],
"name": "http-server",
"main": "./lib/http-server",
"keywords": [
"cli",
"http",
"server"
"analyze": false,
"license": "MIT",
"engines": {
"node": ">=0.6"
},
"contributors": [
{
"name": "Marak Squires",
"email": "marak@nodejitsu.com"
}
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc