Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "platformsh", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Helper for running nodejs applications on Platform.sh", | ||
"main": "platformsh.js", | ||
"main": "lib/platformsh.min.js", | ||
"keywords": [ | ||
@@ -16,6 +16,10 @@ "platformsh", | ||
"directories": { | ||
"lib": "lib", | ||
"src": "src", | ||
"test": "tests" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"lint": "./node_modules/eslint/bin/eslint.js src/", | ||
"build": "mkdir -p ./lib && npm run lint && uglifyjs --compress --mangle -o lib/platformsh.min.js -- src/platformsh.js", | ||
"test": "mocha --reporter spec" | ||
}, | ||
@@ -26,3 +30,11 @@ "repository": { | ||
}, | ||
"homepage": "https://github.com/platformsh/platformsh-nodejs-helper#readme" | ||
"homepage": "https://github.com/platformsh/platformsh-nodejs-helper#readme", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"chai-shallow-deep-equal": "^1.4.6", | ||
"eslint": "^3.19.0", | ||
"mocha": "^3.4.1", | ||
"mock-require": "^2.0.2", | ||
"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony" | ||
} | ||
} |
# platformsh-nodejs-helper | ||
Helper for running nodejs applications on Platform.sh | ||
Helper for running nodejs applications on Platform.sh. | ||
## Purpose | ||
Reads [Platform.sh configuration](https://docs.platform.sh/development/variables.html) from environment and returns a single object. | ||
## Usage: | ||
```bash | ||
npm install platformsh --save | ||
``` | ||
And in your code: | ||
```javascript | ||
const config = require('platformsh').config(); | ||
``` |
Sorry, the diff of this file is not supported yet
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
34748
18
6
0
13
2