Skip to content

lk-architecture/kinesis-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version Build Status codecov Dependency Status devDependency Status

kinesis-router

Kinesis event router for lambda functions

Usage

/* Lambda function */
import router from "kinesis-router";

function doSomething (event) {
    console.log("Do something with:");
    console.log(event);
}

function doSomethingElse (event) {
    console.log("Do something else with:");
    console.log(event);
}

export var handler = router()
    .on("event_one", doSomething)
    .on("event_two", doSomethingElse);

About

Kinesis event router for lambda functions

Resources

License

Stars

Watchers

Forks

Packages

No packages published