{"id":20042560,"url":"https://github.com/code4mk/atom-axios","last_synced_at":"2026-06-11T05:31:19.981Z","repository":{"id":104451396,"uuid":"102033585","full_name":"code4mk/atom-axios","owner":"code4mk","description":":atom: Atom Axios snippet package","archived":false,"fork":false,"pushed_at":"2017-10-13T17:46:23.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T07:17:38.918Z","etag":null,"topics":["atom-package","axios","axios-atom","axios-snippet","vue"],"latest_commit_sha":null,"homepage":"https://hellolaravel.org","language":null,"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/code4mk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-31T18:45:40.000Z","updated_at":"2017-10-27T11:54:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"be2a18db-fe07-4755-9e82-8c1c576d0e8d","html_url":"https://github.com/code4mk/atom-axios","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"d9db2fa3358394afc191fd68a7c7ceaada853640"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/code4mk/atom-axios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fatom-axios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fatom-axios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fatom-axios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fatom-axios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code4mk","download_url":"https://codeload.github.com/code4mk/atom-axios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4mk%2Fatom-axios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34184779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["atom-package","axios","axios-atom","axios-snippet","vue"],"created_at":"2024-11-13T10:52:15.503Z","updated_at":"2026-06-11T05:31:19.958Z","avatar_url":"https://github.com/code4mk.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#  ⚛️ Atom Axios {vue.js , laravel , js}\n\n\u003cp align=\"center\" \u003e\u003cimg src=\"settings/axios.jpg\"\u003e\u003c/p\u003e\n\n\u003e laravel-\u003e vue -\u003eaxios atom package by @code4mk\n\nInstall:\n```ssh\napm install atom-axios\n```\n\nMian Features:\n\n  - Snippet Axios on vue\n\n\nVersion:\n\n  - axios 0.1.0\n\n\n## Snippet list\n|Snippet short| Description|\n|----|-----------|\n| ax-g | axios get all components |\n| ax-gp | axios get with params |\n| ax-mg | axios multiple get |\n| ax-p | axios post all components |\n| ax-get | axios only get |\n| ax-then | axios only then |\n| ax-catch | axios only catch |\n| ax-bind | `this` issue solve by bind |\n\n# ax-g\n\n```js\naxios.get('/user?ID=12345')\n  .then(function (response){\n    // Getting Data from response\n  })\n  .catch(function (error){\n    console.log(error);\n  });\n```\n\n# ax-gp\n\n```js\naxios.get('/user',{\n  params:{\n    ID: 12345\n  }\n})\n  .then(function (response){\n   //Getting data from response\n  })\n  .catch( function (error){\n    console.log(error);\n  });\n```\n\n# ax-mg\n\n```js\nfunction getUserAccount() {\n  return axios.get('/user/12345');\n}\n\nfunction getUserPermissions() {\n  return axios.get('/user/12345/permissions');\n}\n\naxios.all([getUserAccount(), getUserPermissions()])\n  .then(axios.spread(function (acct, perms) {\n    // Both requests are now complete\n  }));\n```\n\n# ax-p\n\n```js\naxios.post('/user',{\n  firstName: 'code4mk',\n  lastName: 'Hello-laravel'\n})\n  .then(function (response){\n   //Getting data from response\n  })\n  .catch( function (error){\n    // Describe error!\n  });\n```\n\n# issue if can't access by `this` . follow this\n\n```js\naxios.get('/user?ID=12345')\n  .then(function (response){\n    // Getting Data from response\n  }.bind(this))\n  .catch(function (error){\n    console.log(error);\n  });\n```\n\n\n### Axios\n\n* [Axios](https://github.com/mzabriskie/axios)\n\n---\n\u003e [@code4mk](https://twitter.com/code4mk) // ~  [Hello Laravel](https://twitter.com/hellolaravelbd)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Fatom-axios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode4mk%2Fatom-axios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4mk%2Fatom-axios/lists"}