New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cyfs-service-helper

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyfs-service-helper

help people build dec service quickly in CYFS.

  • 1.0.14
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-59.09%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 16 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc