-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
Would it make sense to make environ a wrapper around process.env? I have some code that does at least part of it, and I'll try my luck with a pull request if it's at all a sensible feature:
(ns environ.core
(:require [clojure.string :as str]))
(defn- s->k [s]
(-> s
str/lower-case
(str/replace "_" "-")
keyword))
(def env
(->> js/process.env
js/Object.keys
js->clj
(map (fn [k] [(s->k k) (aget js/process.env k)]))
(into {})))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels