Socket
Socket
Sign inDemoInstall

xioo

Package Overview
Dependencies
140
Maintainers
1
Versions
187
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xioo

xioo of project


Version published
Weekly downloads
355
decreased by-35.57%
Maintainers
1
Install size
17.2 MB
Created
Weekly downloads
 

Readme

Source

xioo 晓

https://www.npmjs.com/package/xioo https://github.com/zhaodeezhu/xioo

我给他起了一个名字,"晓"。

致力于打造成node中最便捷的服务框架。

Plugins

NameDescriptionRegisterVersion
@xioo/redisRedis连接插件redisredis https://github.com/zhaodeezhu/xioo/tree/master/plugins/Redis
@xioo/postgressPG连接插件pgredis https://github.com/zhaodeezhu/xioo/tree/master/plugins/Postgress
@xioo/kafkaKafka连接插件生产者:kafkaProducer
消费者:kafkaConsumer
https://www.npmjs.com/package/@xioo/kafka https://github.com/zhaodeezhu/xioo/tree/master/plugins/Kafka
@xioo/mysqlMysql连接插件mysqlhttps://www.npmjs.com/package/@xioo/mysql https://github.com/zhaodeezhu/xioo/tree/master/plugins/Mysql
@xioo/elasticsearchES连接插件eshttps://www.npmjs.com/package/@xioo/elasticsearch https://github.com/zhaodeezhu/xioo/tree/master/plugins/ElasticSearch
@xioo/cli脚手架工具@xioo/cli https://github.com/zhaodeezhu/xioo/tree/master/cli
@xioo/email发送邮件服务emailredis @xioo/email
@xioo/xioshttp请求工具xiosxios https://github.com/zhaodeezhu/xioo/tree/master/plugins/Xios
@xioo/mongomongo连接插件Mongo

开始

要启动一个服务很简单。

安装

npm i xioo

启动服务

import Xioo from 'xioo';
const app = new Xioo();

app.start();

使用插件

使用redis为例

安装插件
npm i --save @xioo/redis @xioo/xios
注册插件
import Xioo from 'xioo';
import redis from '@xioo/redis';
import xios from '@xioo/xios';

const app = new Xioo({servicePlugins: { redis }, appPlugins: { xios }});

app.start();

Keywords

FAQs

Last updated on 16 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc