Commit 1a806cf4 authored by Ahmad's avatar Ahmad

inikt

parent 36d5c70a
@echo off
title Running Node.js Create
echo Starting Node.js Create...
cd /d "%~dp0" // Ensures the script runs from the directory where the batch file is located
node ip.js // Runs your Node.js application
pause // Keeps the command prompt open after the script finishes
const axios = require('axios');
axios.get('http://ip-api.com/json')
.then(response => {
console.log('Your IP information:', response.data);
})
.catch(error => {
console.error('Error fetching IP information:', error);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment