Skip to content

Implements Command Pattern using ESNext decorators.

License

Notifications You must be signed in to change notification settings

emotz/command-decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status MIT license

command-decorator

Implements Command Pattern using ESNext decorators.

Installation

npm install https://github.com/emotz/command-decorator

Usage

Tested on Windows, but should work on Linux/MacOS as well.

import { Command, execute } from 'command-decorator';

class TestCommand extends Command {
    @execute
    public async execute() {
        return 10;
    }
}

const cmd = new TestCommand();
cmd.execute();

About

Implements Command Pattern using ESNext decorators.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published