@walaura/remote-env

1.0.0 • Public • Published

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";

Readme

Keywords

none

Package Sidebar

Install

npm i @walaura/remote-env

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

3.44 kB

Total Files

7

Last publish

Collaborators

  • walaura