1. act-master
A way to separate business logic from application view.
act-master
Package: act-master
Created by: avil13
Last modified: Sat, 27 Apr 2024 07:07:08 GMT
Version: 2.5.0
License: MIT
Downloads: 294
Repository: https://github.com/avil13/vue-act-master

Install

npm install act-master
yarn add act-master

Act-Master

A way to separate business logic from application view.

The easiest library to create a flexible application architecture.

npm bundle size
npm version

vue-act-master

๐Ÿ“— Documentation

๐Ÿ—บ Example project structure

๐Ÿงช Test writing with "ActTest"


Example

Installation

 npm install act-master

Usage

 import { ActMaster } from 'act-master';

const $act = new ActMaster();

const action = {
  name: 'LogData',
  exec(message) {
    console.log('Log:', message);
    return 'Success!!!';
  }
};

$act.addAction(action);

// Use action
const result = await $act.exec('LogData', 'Hello world');

console.log('Result:', result);

console.log

 Log: Hello world
Result: Success!!!

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin