1.0.0 • Published 5 years ago
@walaura/remote-env v1.0.0
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";
1.0.0
5 years ago