@dotenvx/dotenvx
Advanced tools
Comparing version 0.6.0 to 0.6.1
{ | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"name": "@dotenvx/dotenvx", | ||
@@ -4,0 +4,0 @@ "description": "a better dotenv–from the creator of `dotenv`", |
@@ -305,4 +305,6 @@ ![dotenvx](https://dotenvx.com/better-banner.png) | ||
1. After `brew`, installing globally using [`npm`](https://www.npmjs.com/package/@dotenvx/dotenvx) is easiest: | ||
#### 1. global npm | ||
After `brew`, installing globally using [`npm`](https://www.npmjs.com/package/@dotenvx/dotenvx) is easiest: | ||
```sh | ||
@@ -312,10 +314,6 @@ npm install @dotenvx/dotenvx --global | ||
2. Or use with [`npx`](https://www.npmjs.com/package/npx): | ||
#### 2. local npm | ||
```sh | ||
npx @dotenvx/dotenvx help | ||
``` | ||
Or install in your `package.json`: | ||
3. Or install in your `package.json` | ||
```sh | ||
@@ -325,28 +323,21 @@ npm i @dotenvx/dotenvx --save | ||
```json | ||
"scripts": { | ||
"start": "./node_modules/.bin/dotenvx run -- nodex index.js" | ||
{ | ||
"scripts": { | ||
"start": "./node_modules/.bin/dotenvx run -- node index.js" | ||
}, | ||
"dependencies": { | ||
"@dotenvx/dotenvx": "^0.6.0" | ||
} | ||
} | ||
``` | ||
3. Or download it directly as a standalone binary: | ||
#### 3. standalone binary | ||
```sh | ||
curl -fsS https://dotenvx.sh/ | sh | ||
``` | ||
Or download it directly as a standalone binary: | ||
```sh | ||
# download it to `./dotenvx` | ||
# download it to `/user/local/bin/dotenvx` | ||
curl -fsS https://dotenvx.sh/ | sh | ||
# check it works | ||
./dotenvx help | ||
# move it to `/usr/local/bin/dotenvx` | ||
sudo install -m 755 dotenvx /usr/local/bin | ||
# check it still works | ||
/usr/local/bin/dotenvx help | ||
# check it is in your path | ||
which dotenv | ||
dotenvx help | ||
@@ -353,0 +344,0 @@ ``` |
@@ -10,10 +10,6 @@ const winston = require('winston') | ||
function pad (word) { | ||
return word.padEnd(9, ' ') | ||
} | ||
const dotenvxFormat = printf(({ level, message, label, timestamp }) => { | ||
const formattedMessage = typeof message === 'object' ? JSON.stringify(message) : message | ||
return `[dotenvx@${packageJson.version}]${pad(`[${level.toUpperCase()}]`)} ${formattedMessage}` | ||
return `[dotenvx@${packageJson.version}][${level.toUpperCase()}] ${formattedMessage}` | ||
}) | ||
@@ -20,0 +16,0 @@ |
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
24603
489
349