https://github.com/eloqjs/nuxt-collection
  
  
    The collection for your resources. Made specifically to work with arrays of objects from your API Responses. 
    https://github.com/eloqjs/nuxt-collection
  
array collection eloqjs eloquent javascript laravel module nuxt resources typescript
        Last synced: 8 months ago 
        JSON representation
    
The collection for your resources. Made specifically to work with arrays of objects from your API Responses.
- Host: GitHub
- URL: https://github.com/eloqjs/nuxt-collection
- Owner: eloqjs
- License: mit
- Created: 2020-11-24T04:25:35.000Z (almost 5 years ago)
- Default Branch: dev
- Last Pushed: 2021-01-19T14:32:13.000Z (almost 5 years ago)
- Last Synced: 2025-02-23T22:47:08.465Z (8 months ago)
- Topics: array, collection, eloqjs, eloquent, javascript, laravel, module, nuxt, resources, typescript
- Language: TypeScript
- Homepage: https://collection.eloqjs.com
- Size: 964 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # @eloqjs/nuxt-collection
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Code Climate maintainability][code-climate-maintainability-src]][code-climate-maintainability-href]
[![Codecov][codecov-src]][codecov-href]
[![Gitpod ready-to-code][gitpod-src]][gitpod-href]
[![Contributions][contributions-src]][contributions-href]
[![License][license-src]][license-href]
> The collection for your resources. Made specifically to work with arrays of objects from your API Responses.
**Nuxt Collection** | [Collection](https://github.com/eloqjs/collection) | [Vue Collection](https://github.com/eloqjs/vue-collection)
- [✨  Release Notes](https://collection.eloqjs.com/releases)
- [📖  Read the Documentation](https://collection.eloqjs.com)
## Features
- Made specifically to work with arrays of objects
- JSON API specification support
- Extends the Array class
- Names and conventions that makes sense
- Models support, fully compatible with [vue-api-query](https://github.com/robsontenorio/vue-api-query),
  [sarala](https://github.com/milroyfraser/sarala/) and [coloquent](https://github.com/DavidDuwaer/Coloquent)
- Integrable `primaryKey`, `fresh` and `toQuery`
- TypeScript support
[📖  Read the Documentation](https://collection.eloqjs.com)
## Setup
1. Add `@eloqjs/nuxt-collection` dependency to your project
```bash
yarn add @eloqjs/nuxt-collection # or npm install @eloqjs/nuxt-collection
```
2. Add `@eloqjs/nuxt-collection` to the `modules` section of `nuxt.config.js`
```js
{
  modules: [
    // Simple usage
    '@eloqjs/nuxt-collection',
    // With options
    ['@eloqjs/nuxt-collection', { /* module options */ }],
    
    // Module Options
    collection: {}
  ]
}
```
## Contributing
You can contribute online with Gitpod:
[][gitpod-href]
Or locally:
1. Clone this repository
2. Install dependencies using `yarn install`
3. Start development server using `yarn dev`
## Credits
- 🔥 Inspiration from [Laravel Eloquent Collections](https://laravel.com/docs/eloquent-collections).
- 💎 Based on [collect.js](https://github.com/ecrmnn/collect.js) by [Daniel Eckermann](https://github.com/ecrmnn).
  Thank you so much for your amazing package!
- ❤️ Whoever contributes to this project!
## License
[MIT License](./LICENSE)
Copyright (c) João Pedro Antunes Silva
[npm-version-src]: https://img.shields.io/npm/v/@eloqjs/nuxt-collection/latest.svg
[npm-version-href]: https://npmjs.com/package/@eloqjs/nuxt-collection
[npm-downloads-src]: https://img.shields.io/npm/dt/@eloqjs/nuxt-collection.svg
[npm-downloads-href]: https://npmjs.com/package/@eloqjs/nuxt-collection
[github-actions-ci-src]: https://img.shields.io/github/workflow/status/eloqjs/nuxt-collection/Test%20and%20Release?label=actions&logo=github&style=flat-square
[github-actions-ci-href]: https://github.com/eloqjs/nuxt-collection/actions?query=workflow%3ATest%20and%20Release
[code-climate-maintainability-src]: https://img.shields.io/codeclimate/maintainability/eloqjs/nuxt-collection?logo=code-climate&style=flat-square
[code-climate-maintainability-href]: https://codeclimate.com/github/eloqjs/nuxt-collection/maintainability
[codecov-src]: https://img.shields.io/codecov/c/github/eloqjs/nuxt-collection.svg?logo=codecov&style=flat-square
[codecov-href]: https://codecov.io/gh/eloqjs/nuxt-collection
[codecov-src]: https://img.shields.io/codecov/c/github/eloqjs/nuxt-collection.svg
[codecov-href]: https://codecov.io/gh/eloqjs/nuxt-collection
[gitpod-src]: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod&style=flat-square
[gitpod-href]: https://gitpod.io/#https://github.com/eloqjs/nuxt-collection
[contributions-src]: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square
[contributions-href]: https://github.com/eloqjs/nuxt-collection/issues
[license-src]: https://img.shields.io/github/license/eloqjs/nuxt-collection?style=flat-square
[license-href]: https://github.com/eloqjs/nuxt-collection/blob/dev/LICENSE.md