{"_id":"@0xshibu/crypto-price-alert","name":"@0xshibu/crypto-price-alert","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@0xshibu/crypto-price-alert","version":"1.0.1","description":"The Cryptocurrency Price Alert script is a Node.js utility designed to monitor the price of a specified cryptocurrency and notify the user when the price crosses predefined upper or lower thresholds. This real-time monitoring tool helps users stay informe","main":"index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/0xshibu/Crypto-Price-Alert.git"},"keywords":["Crypto","Cryptocurrency","Bitcion","Price","Tracker"],"author":{"name":"0xShibu"},"license":"ISC","dependencies":{"node-fetch":"^3.3.2","node-notifier":"^10.0.1"},"bugs":{"url":"https://github.com/0xshibu/Crypto-Price-Alert/issues"},"homepage":"https://github.com/0xshibu/Crypto-Price-Alert#readme","devDependencies":{},"_id":"@0xshibu/crypto-price-alert@1.0.1","gitHead":"f4981d9a6d8024d10996414623da824a19dca6fa","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-KoM3fx9pWiKFHwYSAJNtWwGtICnw7jikJZiDIXSyLR+LyvwppW0wmP2jBPhAKlSjU3Zr51IgEsnqn50ambQG1Q==","shasum":"b13f14ff0c62272c166cedb938ac2a0860d8116d","tarball":"https://registry.npmjs.org/@0xshibu/crypto-price-alert/-/crypto-price-alert-1.0.1.tgz","fileCount":4,"unpackedSize":5292,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUspoKECwUYT7em9HAVzx94T4H26kFuz3Ixj5lVVTAKAiEAut+2TT00c8HylUhVYEJeQljrmalSPZYxHwAsejsmLlM="}]},"_npmUser":{"name":"0xshibu","email":"0xShibu@gmail.com"},"directories":{},"maintainers":[{"name":"0xshibu","email":"0xShibu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-price-alert_1.0.1_1710820693632_0.42499278676689345"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-19T03:58:13.548Z","1.0.1":"2024-03-19T03:58:13.788Z","modified":"2024-03-19T03:58:14.358Z"},"maintainers":[{"name":"0xshibu","email":"0xShibu@gmail.com"}],"description":"The Cryptocurrency Price Alert script is a Node.js utility designed to monitor the price of a specified cryptocurrency and notify the user when the price crosses predefined upper or lower thresholds. This real-time monitoring tool helps users stay informe","homepage":"https://github.com/0xshibu/Crypto-Price-Alert#readme","keywords":["Crypto","Cryptocurrency","Bitcion","Price","Tracker"],"repository":{"type":"git","url":"git+https://github.com/0xshibu/Crypto-Price-Alert.git"},"author":{"name":"0xShibu"},"bugs":{"url":"https://github.com/0xshibu/Crypto-Price-Alert/issues"},"license":"ISC","readme":"# Cryptocurrency Price Alert Script\n\nThe Cryptocurrency Price Alert script is a Node.js utility designed to monitor the price of a specified cryptocurrency and notify the user when the price crosses predefined upper or lower thresholds. This real-time monitoring tool helps users stay informed about significant price movements without the need to constantly check online exchanges or market data platforms.\n\n## Features\n\n- **Real-time Price Monitoring**: Automatically fetches the latest cryptocurrency price every 30 seconds.\n- **Desktop Notifications**: Sends a desktop notification when the price crosses the user-defined thresholds.\n- **Customizable Thresholds**: Users can set their own upper and lower price limits for alerts.\n- **Supports Multiple Cryptocurrencies**: Easily modified to monitor different cryptocurrencies available on the CoinGecko API.\n\n## Prerequisites\n\nBefore you can run this script, ensure you have the following installed:\n- Node.js (v14 or newer recommended)\n- npm (Node Package Manager)\n\n## Installation\n\n1. **Clone the repository** or download the source code to your local machine.\n\n   ```\n   git clone https://github.com/0xshibu/Crypto-Price-Alert.git\n   cd Crypto-Price-Alert\n   ```\n\n2. **Install dependencies** by running the following command in your project directory:\n\n   ```\n   npm install\n   ```\n\n## Configuration\n\nTo use the script, you need to specify the cryptocurrency you want to monitor and the upper and lower price thresholds for alerts. These can be set directly in the script or passed as command-line arguments (if you implement this functionality).\n\n## Usage\n\n1. **Start the script** by running:\n\n   ```\n   node cryptoPriceAlert.js\n   ```\n\n2. **Monitor the console** for real-time price updates and alerts.\n\n3. **Adjust thresholds** as needed by editing the script or implementing a method to accept user inputs.\n\n## Customization\n\nTo monitor a different cryptocurrency or change the frequency of price checks:\n- Edit the `coinId` variable for different cryptocurrencies.\n- Modify the `setInterval` duration for different update frequencies.\n\n## Dependencies\n\n- `node-fetch`: Used to make HTTP requests to the CoinGecko API for price data.\n- `node-notifier`: Used for sending desktop notifications when price thresholds are crossed.\n\n## Contributing\n\nContributions to the Cryptocurrency Price Alert script are welcome! Whether it's feature suggestions, bug reports, or code contributions, please feel free to make a pull request or open an issue.\n\n## License\n\n[MIT License](LICENSE.md)\n\n## Disclaimer\n\nThis script is provided as-is for educational purposes only. Please use responsibly and at your own risk.\n","readmeFilename":"README.md"}