fetchstow
v1.0.4
Published
A CLI tool to fetch data from an API and store it in a JSON file
Downloads
12
Maintainers
Readme
FetchStow
FetchStow is a CLI tool that allows you to fetch data from an API and store it in a JSON file. It's designed to simplify the process of retrieving and saving data from external sources.
Features
- Fetch data from any public API.
- Validate API URLs and filenames.
- Save fetched data as a JSON file.
- Easy-to-use command-line interface.
Installation
To install FetchStow, you can use npm:
npm install -g fetchstow
Usage
You can run FetchStow using the command line. The basic syntax is as follows:
fetchstow <apiUrl> <filename>
Parameters : The URL of the API you want to fetch data from. : The name of the file to store the fetched data (must end with .json).
Example
fetchstow https://jsonplaceholder.typicode.com/todos/1 output.json
Contributing
Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request. For any issues, please open an issue in the repository.