sails-hook-dotenv

0.1.1 • Public • Published

sails-hook-dotenv

Build Status

Sails JS hook to load environment variables from a .env file using dotenv

Installation

npm install sails-hook-dotenv

Usage

Start sails as you normally do (sails lift) and you will be able to access your environment variables using process.env.your-variable-name

Configuration

You can add configuration options for this hook in config/dotenv.js by default. Currently, the only option is a boolean: active. Setting this to false will disable this hook.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    126
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    126
  • 0.1.0
    0

Package Sidebar

Install

npm i sails-hook-dotenv

Weekly Downloads

95

Version

0.1.1

License

MIT

Last publish

Collaborators

  • taiters