{"_id":"@allainpatinho/log-tracker","_rev":"3-ff4941ba0cc4315edb95d6d1a9bdddb9","name":"@allainpatinho/log-tracker","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@allainpatinho/log-tracker","version":"1.0.0","keywords":["log","tracker","logging"],"author":{"name":"Tu Nombre"},"license":"MIT","_id":"@allainpatinho/log-tracker@1.0.0","maintainers":[{"name":"allainpatinho","email":"padallain2000@gmail.com"}],"dist":{"shasum":"e75540bb8f5093fd29a3d1a313df44ad1ae9fefc","tarball":"https://registry.npmjs.org/@allainpatinho/log-tracker/-/log-tracker-1.0.0.tgz","fileCount":4,"integrity":"sha512-XaOCmuhkA/evZVgOg8gTzslju/dYn2fqEXn7n15MHai5BG/rdgJxKvTnYBlxPLKsKQmKdcSdR2UatJrOpohmWQ==","signatures":[{"sig":"MEYCIQD0s0SgI8JIhe4taWI8gb911pvUA+v4f8Tf1/axMZvdCgIhAPB1VLJmlYxgLX4tA5A+nMuwJyJxa4eCijVBdxrbFUfe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2940},"main":"src/logTracker.js","scripts":{"test":"node src/testLogTracker.js"},"_npmUser":{"name":"allainpatinho","email":"padallain2000@gmail.com"},"_npmVersion":"10.1.0","description":"A library for tracking logs and sending them to a server","directories":{},"_nodeVersion":"20.9.0","dependencies":{"node-fetch":"^2.6.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/log-tracker_1.0.0_1740868376479_0.6654573152647121","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@allainpatinho/log-tracker","version":"1.0.1","keywords":["log","tracker","logging"],"author":{"name":"Tu Nombre"},"license":"MIT","_id":"@allainpatinho/log-tracker@1.0.1","maintainers":[{"name":"allainpatinho","email":"padallain2000@gmail.com"}],"dist":{"shasum":"3ada9861472e5e0d5b729b406a5b6b15049ff10f","tarball":"https://registry.npmjs.org/@allainpatinho/log-tracker/-/log-tracker-1.0.1.tgz","fileCount":5,"integrity":"sha512-OVzOeBHAynMaTQVTNvxlagZSBTqRLgQvv3dxhFjEKv02bN8NAr2UjyKj/KHyXpNplAbU7w/dS8XnW9Dqfo3Utw==","signatures":[{"sig":"MEUCIQDhH2ktpNDjhvJdhIuQ3nkLbzdDLK7EaG0xUe/t3OyF/gIgOA4u0+XAYr53kklT4SZtEmactXUzDwrir0MpHvooepg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3126},"main":"src/logTracker.js","type":"module","scripts":{"test":"node src/testLogTracker.js"},"_npmUser":{"name":"allainpatinho","email":"padallain2000@gmail.com"},"_npmVersion":"10.1.0","description":"A library for tracking logs and sending them to a server","directories":{},"_nodeVersion":"20.9.0","dependencies":{"node-fetch":"^2.6.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/log-tracker_1.0.1_1740869102076_0.7800218973336905","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@allainpatinho/log-tracker","version":"1.0.2","description":"A library for tracking logs and sending them to a server","main":"src/logTracker.js","type":"module","scripts":{"test":"node src/testLogTracker.js"},"keywords":["log","tracker","logging"],"author":{"name":"Tu Nombre"},"license":"MIT","dependencies":{"node-fetch":"^2.6.1"},"publishConfig":{"access":"public"},"_id":"@allainpatinho/log-tracker@1.0.2","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-YRmcFB6CJmuBfRvdBJa5yPSmVOOAHK9wremwcA1vzIFg4XCKZu8yUH6j7Gu8ZAlduIqU/xCTAfBoWHeApjtrAg==","shasum":"2a5d0889e3fc61cf0d8455dadf88a2768bab9118","tarball":"https://registry.npmjs.org/@allainpatinho/log-tracker/-/log-tracker-1.0.2.tgz","fileCount":4,"unpackedSize":2962,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHFbf/fw4UzxKW0WKOIyvIEZbm/4CEWtcmM4vtm6dnTFAiBA7N5c5oWOPDYjPnhZyK9UdwrL1dL4qjZZoKHsKg3rEg=="}]},"_npmUser":{"name":"allainpatinho","email":"padallain2000@gmail.com"},"directories":{},"maintainers":[{"name":"allainpatinho","email":"padallain2000@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/log-tracker_1.0.2_1743996602080_0.3932101227420908"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-01T22:32:56.386Z","modified":"2025-04-07T03:30:02.425Z","1.0.0":"2025-03-01T22:32:56.644Z","1.0.1":"2025-03-01T22:45:02.256Z","1.0.2":"2025-04-07T03:30:02.262Z"},"author":{"name":"Tu Nombre"},"license":"MIT","keywords":["log","tracker","logging"],"description":"A library for tracking logs and sending them to a server","maintainers":[{"name":"allainpatinho","email":"padallain2000@gmail.com"}],"readme":"# my-js-library/my-js-library/README.md\n\n# My JS Library\n\n## Overview\n\nMy JS Library provides a simple way to log the user's IP address. It includes the `IPLogger` class, which fetches the user's IP address and can optionally send it to a specified backend service.\n\n## Installation\n\nTo install the library, you can use npm:\n\n```bash\nnpm install my-js-library\n```\n\n## Usage\n\nTo use the `IPLogger` class in your project, you can import it as follows:\n\n```javascript\nimport IPLogger from 'my-js-library/src/ipLogger.js';\n```\n\n### Example\n\nHere is a simple example of how to use the `IPLogger` class:\n\n```javascript\nconst logger = new IPLogger('https://your-backend-service.com/log-ip');\nlogger.logIP();\n```\n\nIn this example, the `logIP` method fetches the user's IP address and logs it to the console. If a service URL is provided, it will also send the IP address to that URL.\n\n## Methods\n\n### `fetchIP()`\n\n- Fetches the user's IP address from an external API.\n\n### `logIP()`\n\n- Logs the user's IP address to the console.\n- Optionally sends the IP address to a specified service URL if provided.\n\n## Contributing\n\nIf you would like to contribute to this project, please fork the repository and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.","readmeFilename":"README.md"}