1.3.33 • Published 3 years ago
@infini-soft/ic-hub-core v1.3.33
Getting started
No dependency event hub pub/subscriber pattern. Flexible and simple plugins for any use cases like logging, ui feedback, external services. Including React hook, Antd message feedback, console logging.
✨ Features
- No dependency
- React hook
- UI Feedback Antd
- Console console
- Extensible
- Browser/Node
- Typescript / Javascript
🤖 Use Case
- Standard execution Flow control
- Log to console
- User Feedback
- Write to file
- Send message to external services (ex. Sentry.IO)
✨ Plugins
📚 Documentation
Get all documentation, examples and many more in the ☕ kitchen! Here
📦 Install
$ npm install @infini-soft/ic-hub-core --save
# or
$ yarn add @infini-soft/ic-hub-core
🔨 Usage
import React from 'react';
import { consolePlugin, HubCore, SEVERITY } from '@infini-soft/ic-hub-core';
const hub = new HubCore();
hub.register(consolePlugin)
const test = () => {
hub.info({
message: 'Hub Message',
context: { var: true },
});
};
export default () => (
<>
<h1>Test it</h1>
<button onClick={() => test()}>Test me</button>
</>
);
Powered 🚀 by Infinisoft Inc. Wanna cook software? come in the kitchen https://www.kitchen.infini-soft.com
1.3.32
3 years ago
1.3.33
3 years ago
1.3.31
3 years ago
1.3.30
3 years ago
1.3.29
3 years ago
1.3.28
3 years ago
1.3.27
3 years ago
1.3.26
3 years ago
1.3.24
3 years ago
1.3.21
3 years ago
1.3.20
3 years ago
1.3.17
3 years ago
1.3.16
3 years ago
1.3.15
3 years ago
1.3.12
3 years ago
1.3.11
3 years ago
1.3.10
3 years ago
1.3.9
3 years ago
1.3.8
3 years ago
1.3.7
3 years ago
1.3.6
3 years ago
1.3.5
3 years ago
1.3.4
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago