README
Act-Master
A way to separate business logic from application view.
The easiest library to create a flexible application architecture.
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!!!