• Stars
    star
    94
  • Rank 356,972 (Top 8 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Loads ".env" files

Dotenv

Build Status

Loads .env file.

Installation

Add this to your application's shard.yml:

dependencies:
  dotenv:
    github: gdotdesign/cr-dotenv

Usage

Dotenv file example

# Comments can be included for context
#
MY_VARIABLE=my-value

# Empty Lines are also ignored
#
ANOTHER_VAR=awesome-value

Basic example

To load a file named .env-file:

require "dotenv"

# The default file is ".env"
Dotenv.load ".env-file"

See the API docs for more examples.

Contributing

  1. Fork it ( https://github.com/gdotdesign/cr-dotenv/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

More Repositories

1

elm-ui

UI library for making web applications with Elm
Elm
921
star
2

elm-github-install

An alternative decentralized package manager for Elm
Ruby
205
star
3

elm-spec

End-to-end integration testing for Elm apps and components
JavaScript
55
star
4

elm-ui-examples

Examples applications for Elm-UI
Elm
32
star
5

elm-directory

Find and read documentation of Elm packages.
Ruby
17
star
6

elm-storage

Unified interface for accessing and modifying LocalStorage, SessionStorage and Cookies
Elm
13
star
7

cr-melon

Class based Http APIs in crystal
Crystal
12
star
8

elm-dev-env

Opinionated development environment for building Elm apps
JavaScript
12
star
9

elm-dom

Alternative Elm package for DOM manipulation.
Elm
11
star
10

elm-html-styles

Add CSS styles to your HTML!
Elm
8
star
11

quality-control

A Gem for running CI tasks like a boss.
Ruby
8
star
12

moosql

MooTools class wrapper for HTML 5 Sql storage
CoffeeScript
7
star
13

Rubik-s-Cube

Rubik's Cube Game in Three.js
CoffeeScript
5
star
14

cr-corm

SQL Statement Builder
Crystal
5
star
15

elm-ui-website

Website for Elm-UI
Elm
2
star
16

blender-gle

Blender Layout Engine for G.UI
CoffeeScript
2
star
17

coffer

Integrated Components
CoffeeScript
2
star
18

advent-of-code-2022

Advent of Code 2022 in Mint.
Mint
2
star
19

mui

MUI - Modern User Interfaces
CoffeeScript
2
star
20

diamond

Chrome / Node-Webkit App development environment
JavaScript
2
star
21

crystal

JavaScript library
JavaScript
2
star
22

fron-acr

Ruby
1
star
23

global-actions-example

Elm
1
star
24

shards

Repository for client side JavaScript libraries.
Ruby
1
star
25

elm-html

Elm
1
star
26

worm

virtual Object-relational mapping
CoffeeScript
1
star
27

nodesass

Sass compiler for node.js
CoffeeScript
1
star
28

Lattice

A JavaScript User Interface Library with the power of MooTools.
CoffeeScript
1
star
29

stash

Object based initialization
JavaScript
1
star
30

moxy-demos

JavaScript
1
star
31

cr-dkim

Crystal
1
star
32

cr-quickjs

Crystal
1
star
33

Coffee-Store

Simple Key - Value storage interface for local storage implementations.
JavaScript
1
star
34

rennee-extras

Some extra methods and stuff for Renee.
1
star
35

Moosic

A simple HTML5 audio player with the power of MooTools.
JavaScript
1
star