act-master
TypeScript icon, indicating that this package has built-in type declarations

2.5.0 • Public • Published

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


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!!!

Package Sidebar

Install

npm i act-master

Weekly Downloads

29

Version

2.5.0

License

MIT

Unpacked Size

130 kB

Total Files

70

Last publish

Collaborators

  • avil13