send-ip-to-firebase

Downloads IP address from a given web service and writes it to the given Firebase Firestore document

Usage no npm install needed!

<script type="module">
  import sendIpToFirebase from 'https://cdn.skypack.dev/send-ip-to-firebase';
</script>

README

send-ip-to-firebase

Downloads IP address from a given web service and writes it to the given Firebase Firestore document

Usage

$ send-ip-to-firebase <path-to-your-service-account-key-json> <firebase-firestore-database-url> <path-to-document> <web-service-that-returns-ip-address>

Example usage

$ send-ip-to-firebase ./key.json https://mypage-abcdef.firebaseio.com ips/Utrquhfafhaisf235af https://ifconfig.co/ip