Skip to content

🔑Easy way to access dotenv file secrets and use it anywhere in your sub-directory. A dotenv wrapper.

License

Notifications You must be signed in to change notification settings

jorgerosal/ckey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2132b2f Â· Nov 22, 2021

History

16 Commits
Oct 11, 2018
Oct 11, 2018
Nov 22, 2021
Oct 11, 2018
Oct 11, 2018
Nov 22, 2021

Repository files navigation

ckey - a dotenv plugin.

Simple and easy way to access dotenv file secrets and use it anywhere in your sub-directory.

▶️ Installation

npm install ckey

đź“ť Usage

Create a .env file in the root directory of your project. Add environment-specific variables on new lines in the form of NAME=VALUE. For example:

  • .env file from main directory.
# dotenv sample content

USER=your_email@gmail.com
PASSWORD=iampassword123

API_KEY=1234567890
  • some js file from sub-directory
const ck = require('ckey');

const userName = ck.USER;     // your_email@gmail.com
const password = ck.PASSWORD; // iampassword123
const apiKey   = ck.API_KEY;  // 1234567890

đź“ś License

The MIT License (MIT) Jorge Rosal

About

🔑Easy way to access dotenv file secrets and use it anywhere in your sub-directory. A dotenv wrapper.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published