New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cross-conf-env

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-conf-env - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

6

CHANGELOG.md
# ChangeLog
## 1.0.7
* Change
* [Using a Config in a Redirect on Mac & Windows](https://github.com/akabekobeko/npm-cross-conf-env/issues/17)
* [Node v7 support](https://github.com/akabekobeko/npm-cross-conf-env/issues/16)
## 1.0.6

@@ -4,0 +10,0 @@

14

package.json
{
"name": "cross-conf-env",
"description": "To cross-platform the config and root variable reference of package.json in npm-scripts.",
"version": "1.0.6",
"version": "1.0.7",
"author": "akabeko",

@@ -49,13 +49,13 @@ "license": "MIT",

"devDependencies": {
"babel-cli": "^6.14.0",
"babel-preset-latest": "^6.14.0",
"babel-cli": "^6.18.0",
"babel-preset-latest": "^6.16.0",
"babel-preset-power-assert": "^1.0.0",
"babel-register": "^6.14.0",
"babel-register": "^6.18.0",
"esdoc": "^0.4.8",
"mocha": "^3.0.2",
"power-assert": "^1.4.1"
"mocha": "^3.2.0",
"power-assert": "^1.4.2"
},
"dependencies": {
"cross-spawn": "^4.0.0"
"cross-spawn": "^5.0.1"
}
}
# npm-cross-conf-env
![node v6, v7](https://img.shields.io/badge/node-v6%2C%20v7-green.svg)
[![npm version](https://badge.fury.io/js/cross-conf-env.svg)](https://badge.fury.io/js/cross-conf-env)

@@ -83,2 +84,31 @@ [![Build Status](https://travis-ci.org/akabekobeko/npm-cross-conf-env.svg?branch=master)](https://travis-ci.org/akabekobeko/npm-cross-conf-env)

# Limitations
`cross-conf-env` converts the value specified in `process.env`.
It will not work if run from pipe in npm-scripts.
```json
{
"config": {
"app": "MyApp",
"test": "Test"
},
"scripts": {
"pipe": "cross-conf-env echo npm_package_config_var | cross-conf-env echo keep npm_package_config_test",
}
}
```
results:
```
$ npm run pipe
Test
echo: write: Broken pipe
```
If concatenating npm-scripts we recommend [npm-run-all](https://www.npmjs.com/package/npm-run-all) rather than pipe.
If it is `npm-run-all` can concatenate npm-scripts to cross platforms, and `cross-conf-env` will work as well.
# ChangeLog

@@ -85,0 +115,0 @@

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