pointenv
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

pointenv npm version

Install

# Install locally (recomended)
npm install pointenv --save

Or installing with yarn? yarn add dotenv

Create a .env file in the root of your project:

NAME=Pointenv
VERSION=1.2.1
LICENSE=MIT
AUTHOR=Shahzada Modassir
DEBUG=true
GIT_REPOGITORY="git+https://github.com/nodeflict/pointenv.git"

As early as possible in your application, import and configure dotenv:

require("pointenv").load();
console.log(process.env);

That's it. process.env now has the keys and values you defined in your .env file:

require("pointenv").load();
console.log(process.env.GIT_REPOGITORY);

License

MIT

Author

Shahzada Modassir

Package Sidebar

Install

npm i pointenv

Weekly Downloads

3

Version

1.2.1

License

MIT

Unpacked Size

4.33 kB

Total Files

6

Last publish

Collaborators

  • shahzadamodassir