cocop/drslib


Utility Library for Structure-Function Architectural pattern

License: Apache-2.0

Language: TypeScript

Keywords: nodejs, typescript


drslib

Utility Library for Structure-Function Architectural pattern

Click here for details of the architecture

Supported typescript

import * as drs from "drslib";

class Increment implements drs.IAction<number, number> {
    do(p: number) {
        return p + 1
    }
}

const action = new drs.Chain<number>()
    .join(new drs.Run((p) => p + "0"))         // p: number
    .join(new drs.Run((p) => parseInt(p) + 1)) // p: string
    .join(new Increment())
    .create();

const result: number = action.do(1); //result = 12

Installation

npm install drslib

License

Apache License 2.0

Project Statistics

Sourcerank 2
Repository Size 293 KB
Stars 0
Forks 0
Watchers 0
Open issues 0
Dependencies 114
Contributors 1
Tags 32
Created
Last updated
Last pushed

Top Contributors See all

coco

Packages Referencing this Repo

drslib
Utility Library for Structure-Function Architectural pattern
Latest release 1.0.0 - Updated

Recent Tags See all

v1.0.0 December 09, 2019
v0.21.0 December 07, 2019
v0.20.1 December 01, 2019
v0.20.0 November 29, 2019
v0.19.2 November 28, 2019
v0.19.1 November 28, 2019
v0.19.0 November 28, 2019
v0.18.0 November 24, 2019
v0.17.1 November 17, 2019
v0.17.0 November 16, 2019
v0.16.0 November 15, 2019
v0.15.1 November 10, 2019
v0.15.0 November 10, 2019
v0.14.0 November 10, 2019
v0.13.0 November 09, 2019

Something wrong with this page? Make a suggestion

Last synced: 2019-12-09 03:42:49 UTC

Login to resync this repository