Skip to content

Commit da9b7f2

Browse files
committedOct 11, 2018
add new modules
1 parent 81b7c40 commit da9b7f2

File tree

4 files changed

+28
-5
lines changed

4 files changed

+28
-5
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# cKey - A dotenv plugin.
1+
## ckey - A dotenv plugin.
22
Simple and easy way to access dotenv file secrets and use it anywhere in your sub-directory.
33

44
### ▶️ Installation

‎app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const dotenv = require('dotenv');
1+
const dotenv = require('dotenv').config({ path: require('find-config')('.env') });
2+
23
dotenv.load();
34

45
module.exports = process.env;

‎package-lock.json

+22-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ckey",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Simple and easy way to access dotenv file secrets and use it anywhere in your sub-directory.",
55
"main": "app.js",
66
"scripts": {
@@ -19,6 +19,7 @@
1919
"author": "Jorge Rosal",
2020
"license": "MIT",
2121
"dependencies": {
22-
"dotenv": "^6.1.0"
22+
"dotenv": "^6.1.0",
23+
"find-config": "^1.0.0"
2324
}
2425
}

0 commit comments

Comments
 (0)
Please sign in to comment.