{"id":23623411,"url":"https://github.com/ticklemycode/save-resp","last_synced_at":"2025-11-07T05:30:50.641Z","repository":{"id":143803995,"uuid":"136265100","full_name":"ticklemycode/save-resp","owner":"ticklemycode","description":"Simple CLI tool for making ajax request then save the response to a local file system. Can be configured to run on an interval over a given amount of time. Depending on the content-type header the response will be saved as .json, .xml or .txt.","archived":false,"fork":false,"pushed_at":"2018-06-06T14:04:29.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-12T23:39:40.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ticklemycode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-06T03:11:29.000Z","updated_at":"2023-09-27T19:06:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fde0a87-c7e3-4ed6-9dc9-5b3e50d1031b","html_url":"https://github.com/ticklemycode/save-resp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fsave-resp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fsave-resp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fsave-resp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fsave-resp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ticklemycode","download_url":"https://codeload.github.com/ticklemycode/save-resp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239520475,"owners_count":19652693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-27T20:39:51.963Z","updated_at":"2025-02-18T17:43:55.895Z","avatar_url":"https://github.com/ticklemycode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# save-resp\n\nSimple CLI tool for making ajax request then save the response to a local file system. Can be configured to run on an interval over a given amount of time. Depending on the content-type header the response will be saved as `.json`, `.xml` or `.txt`.\n\n## Usage\nThe follow will make a request to a given url every second a period of 10 seconds while saving each response to the `/Users/me` directory.\n\n```js\n  save-resp -u \"\u003cENDPOINT_URL\u003e\" \"data\" -t 10000 -i 1000 -o \"/Users/me/\"\n```\n\n## Install\n```js\n  npm install --save save-resp\n```\n\n## Options\n\n| option                | description                                                                                                                            |\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| -h, --help            | Display this usage guide.                                                                                                              |\n| -u, --url string      | URL to make request to.                                                                                                                |\n| -o, --out string      | Path to where you want to store responses. Default is current dir.                                                                     |\n| -i, --interval number | Interval at which URL will be called.                                                                                                  |\n| -t, --timeout number  | Period of time you wish to make ajax calls. Interval is required.                                                                      |\n| -p, --prefix string   | Prefix for filename. Ex: data_1528231421562.json                                                                                       |\n| -s, --timestamp       | Use timestamp or date in filename, Ex: data_1528231421562.json vs,data_Tue_Jun_05_2018_21:57:20_GMT-0400_(EDT).json. Default is false. |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticklemycode%2Fsave-resp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fticklemycode%2Fsave-resp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticklemycode%2Fsave-resp/lists"}