mirror of
https://github.com/tribufu/tribufu-js
synced 2026-05-06 06:47:27 +00:00
Create anonymous.js
This commit is contained in:
parent
ff962a166e
commit
ad1a0f1fae
1 changed files with 14 additions and 0 deletions
14
examples/anonymous.js
Normal file
14
examples/anonymous.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
// SPDX-License-Identifier: MIT AND Apache-2.0
|
||||
|
||||
import dotenv from "dotenv";
|
||||
import { TribufuApi } from "../build/index.mjs";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
async function main() {
|
||||
const tribufu = TribufuApi.default();
|
||||
console.log(await tribufu.getCurrentIpAddress());
|
||||
}
|
||||
|
||||
main();
|
||||
Loading…
Add table
Add a link
Reference in a new issue