1.0.0 • Published 5 years ago

@walaura/remote-env v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

remote-env

set REMOTE_ENV_URL to be some random json and have it download whe running remote-env

basically, install and set your app like this

package.json

{
  "name": "butts",
  "scripts": {
    "postinstall": "remote-env"
  }
}

.env

REMOTE_ENV_URL=asdf://butts.lol/config.json

asdf://butts.lol/config.json

{
  "token": "banana"
}

index.js

const config = require("@walaura/remote-env");

config.token === "banana";