wasm-get-ip
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

wasm-get-ip

An IP address fetcher written in Rust and built with wasm-pack


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

  1. git clone https://github.com/Valerioageno/wasm-get-ip.git
  2. wasm-pack build
  3. enjoy!
  4. 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.

Readme

Keywords

none

Package Sidebar

Install

npm i wasm-get-ip

Weekly Downloads

2

Version

0.3.1

License

MIT

Unpacked Size

120 kB

Total Files

9

Last publish

Collaborators

  • valerioageno