{"id":18717417,"url":"https://github.com/js-data/js-data-adapter","last_synced_at":"2025-04-12T13:32:24.224Z","repository":{"id":57282994,"uuid":"53228159","full_name":"js-data/js-data-adapter","owner":"js-data","description":"Base adapter class that all other js-data adapters extend.","archived":false,"fork":false,"pushed_at":"2020-02-02T19:58:33.000Z","size":607,"stargazers_count":8,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T04:55:37.898Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/js-data.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-05T23:24:49.000Z","updated_at":"2023-10-19T19:15:21.000Z","dependencies_parsed_at":"2022-09-19T23:21:51.956Z","dependency_job_id":null,"html_url":"https://github.com/js-data/js-data-adapter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-data","download_url":"https://codeload.github.com/js-data/js-data-adapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223518363,"owners_count":17158690,"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-11-07T13:16:09.667Z","updated_at":"2024-11-07T13:16:10.453Z","avatar_url":"https://github.com/js-data.png","language":"JavaScript","readme":"\u003cimg src=\"https://raw.githubusercontent.com/js-data/js-data/master/js-data.png\" alt=\"js-data logo\" title=\"js-data\" align=\"right\" width=\"96\" height=\"96\" /\u003e\n\n# js-data-adapter\n\n[![Slack Status][sl_b]][sl_l]\n[![npm version][npm_b]][npm_l]\n[![npm downloads][dn_b]][dn_l]\n[![build][circle_b]][circle_l]\n[![coverage][cov_b]][cov_l]\n\nBase adapter class that all other JSData adapters extend.\n\nRefer to the various JSData adapter repositories to see how they extend `Adapter`.\n\n## Usage\n\n##### Browser-based adapter\n```\nnpm i --save js-data js-data-adapter\n```\n\n##### Node.js based adapter\n```\nnpm i --save js-data js-data-adapter\n```\n\nNow extend the adapter:\n\n```js\nimport {Adapter} from 'js-data-adapter'\n// ES6\nclass MyAdapter extends Adapter {}\n```\n\n```js\nvar Adapter = require('js-data-adapter').Adapter\n// Use Adapter.extend\nvar MyAdapter = Adapter.extend()\n```\n\n```js\nvar Adapter = require('js-data-adapter').Adapter\n\n// Manually extend\nfunction MyAdapter (opts) {\n  Adapter.call(this, opts)\n}\n\n// Setup prototype inheritance from Adapter\nMyAdapter.prototype = Object.create(Adapter.prototype, {\n  constructor: {\n    value: MyAdapter,\n    enumerable: false,\n    writable: true,\n    configurable: true\n  }\n})\n\nObject.defineProperty(MyAdapter, '__super__', {\n  configurable: true,\n  value: Adapter\n})\n```\n\n## Links\n\n* [Guides and Tutorials](http://www.js-data.io/v3.0/docs/home) - Learn how to use JSData\n* [API Reference Docs](http://api.js-data.io) - Explore components, methods, options, etc.\n* [Community \u0026 Support](http://js-data.io/docs/community) - Find solutions and chat with the community\n* [General Contributing Guide](http://js-data.io/docs/contributing) - Give back and move the project forward\n  * [Contributing to js-data-adapter](https://github.com/js-data/js-data-adapter/blob/master/.github/CONTRIBUTING.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 js-data-adapter project authors\n\n* [LICENSE](https://github.com/js-data/js-data-adapter/blob/master/LICENSE)\n* [AUTHORS](https://github.com/js-data/js-data-adapter/blob/master/AUTHORS)\n* [CONTRIBUTORS](https://github.com/js-data/js-data-adapter/blob/master/CONTRIBUTORS)\n\n[sl_b]: http://slack.js-data.io/badge.svg\n[sl_l]: http://slack.js-data.io\n[npm_b]: https://img.shields.io/npm/v/js-data-adapter.svg?style=flat\n[npm_l]: https://www.npmjs.org/package/js-data-adapter\n[dn_b]: https://img.shields.io/npm/dm/js-data-adapter.svg?style=flat\n[dn_l]: https://www.npmjs.org/package/js-data-adapter\n[circle_b]: https://img.shields.io/circleci/project/js-data/js-data-adapter.svg?style=flat\n[circle_l]: https://circleci.com/gh/js-data/js-data-adapter\n[cov_b]: https://img.shields.io/codecov/c/github/js-data/js-data-adapter.svg?style=flat\n[cov_l]: https://codecov.io/gh/js-data/js-data-adapter\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-data%2Fjs-data-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-data%2Fjs-data-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-data%2Fjs-data-adapter/lists"}