1.3.33 • Published 2 years ago

@infini-soft/ic-hub-core v1.3.33

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

2 years ago

1.3.33

2 years ago

1.3.31

2 years ago

1.3.30

2 years ago

1.3.29

2 years ago

1.3.28

2 years ago

1.3.27

2 years ago

1.3.26

2 years ago

1.3.24

2 years ago

1.3.21

2 years ago

1.3.20

2 years ago

1.3.17

2 years ago

1.3.16

2 years ago

1.3.15

2 years ago

1.3.12

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago