🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@awes-io/vue-mc

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awes-io/vue-mc

Models and collections abstract layer.

latest
Source
npmnpm
Version
0.9.2
Version published
Maintainers
3
Created
Source

Awes.io Models and Collections Abstract Layer

Based on VueMC

Basic usage

  • Ensure you are using @nuxtjs/axios in your project
  • Install the module yarn add @awes-io/vue-mc
  • Now you are ready to build models and collections
  • Import your BaseModel and BaseCollection from this package
import { BaseModel, BaseCollection } from '@awes-io/vue-mc'

class Todo extends BaseModel {
    defaults() {
        return {
            id: null,
            done: true
        }
    }
}

class Todos extends BaseCollection {
    model() {
        return Todo
    }
}

export default Todos

Build before release a new version

$ yarn build

Ensure to write proper commit message according to Git Commit convention

FAQs

Package last updated on 19 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts