1.0.14 • Published 2 years ago

cyfs-service-helper v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

cyfs-service-helper

You can use this tool to quickly develop your dec service, which needs many use of cyfs-sdk-nightly. This tool encapsulates some complex useage,such as decode request object and lock path and so on.

Usage

After your stack had online, you can get the 'stack' object.

Auto apply routers

import { ServiceLoader } from "cyfs-service-helper";

async function init() {
	const service = new ServiceLoader(stack);
	service.install(routers);
	await service.start();
}

const routers: RouterObj = {
	put: {
		test: { reqPath: "/test", router: YourPutMethodRouter },
	},
};

Handle request object

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago