wasm-get-ip
v0.3.1
Published
Fetch client IP address from frontend with superpower
Downloads
4
Readme
Core concept
This WASM project aim to create a lightweight ip address client-side fetcher.
Using the official npm.js package the developer can inject in all the "ipAddress" class elements the client IP configuring his own custom API endpoint or using the default ipify endpoint.
Project usage:
import * as getIp from 'wasm-get-ip';
getIp.fetch()
<p class="ipAddress"></p><!-- Or other markup tags that not require value attribute -->
<input class="ipAddress"/>
<textarea class="ipAddress"></textarea>
🚴 How to start developing
git clone https://github.com/Valerioageno/wasm-get-ip.git
wasm-pack build
- enjoy!
- optional
npm init wasm-app www
🚀 Deploy
For deploying WebAssembly in production check the instructions at the following link: https://rustwasm.github.io/docs/book/reference/deploying-to-production.html
📝 License
This project is licensed under the MIT License - see the LICENSE_MIT || LICENSE_APACHE file for more information.