{"id":32334894,"url":"https://github.com/anpleenko/redux-small-axios-middleware","last_synced_at":"2026-05-15T13:02:37.787Z","repository":{"id":57351610,"uuid":"86049708","full_name":"anpleenko/redux-small-axios-middleware","owner":"anpleenko","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-05T06:37:50.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-25T09:03:33.403Z","etag":null,"topics":["axios","middleware","redux"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/redux-small-axios-middleware","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anpleenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-24T09:20:24.000Z","updated_at":"2017-03-24T12:24:59.000Z","dependencies_parsed_at":"2022-09-19T16:21:01.667Z","dependency_job_id":null,"html_url":"https://github.com/anpleenko/redux-small-axios-middleware","commit_stats":null,"previous_names":["vaeum/redux-small-axios-middleware"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anpleenko/redux-small-axios-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpleenko%2Fredux-small-axios-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpleenko%2Fredux-small-axios-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpleenko%2Fredux-small-axios-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpleenko%2Fredux-small-axios-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anpleenko","download_url":"https://codeload.github.com/anpleenko/redux-small-axios-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpleenko%2Fredux-small-axios-middleware/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["axios","middleware","redux"],"created_at":"2025-10-23T21:10:06.881Z","updated_at":"2026-05-15T13:02:37.782Z","avatar_url":"https://github.com/anpleenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redux-small-axios-middleware\n\n### Redux middleware for async request with axios\n\n[![NPM](https://nodei.co/npm-dl/redux-small-axios-middleware.png?months=1)](https://nodei.co/npm/redux-small-axios-middleware/)\n\n[![Build Status](https://travis-ci.org/vaeum/redux-small-axios-middleware.svg?branch=master)](https://travis-ci.org/vaeum/redux-small-axios-middleware)\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n\n### install\n\n```bash\nnpm i -S redux-small-axios-middleware\n```\n\n### Usage\n\nin createStore.js\n\n```javascript\nimport axios from 'axios';\nimport reduxSmallAxiosMiddleware from 'redux-small-axios-middleware';\n\nlet store = createStore(\n  reducers, //custom reducers\n  applyMiddleware(\n    //all middlewares\n    ...\n    reduxSmallAxiosMiddleware(axios),\n    ...\n  )\n)\n```\n\nin anyAction.js\n\n```javascript\nexport someActions = () =\u003e {\n    return {\n        type: 'GET_DATA_TEST', //require\n        onSuccessCallback: function(){\n            console.log(\"success\")\n        },\n        onErrorCallback: function(){\n            console.log(\"error\")\n        },\n        options: { //\n            url: '\u003cyour URL\u003e', //require\n        },\n    }\n}\n```\n\nOptions object is axios [request config](https://github.com/mzabriskie/axios#request-config)\n\nin dispaching.js\n\n```javascript\nimport { someActions } from '../anyAction.js'\n\n//...\n\n\ndispatch(someActions());\n```\n\n[downloads-image]: https://img.shields.io/npm/dm/redux-small-axios-middleware.svg\n[npm-url]: https://www.npmjs.com/package/redux-small-axios-middleware\n[npm-image]: https://img.shields.io/npm/v/redux-small-axios-middleware.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanpleenko%2Fredux-small-axios-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanpleenko%2Fredux-small-axios-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanpleenko%2Fredux-small-axios-middleware/lists"}