New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@brainstack/core

Package Overview
Dependencies
Maintainers
3
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brainstack/core

Your package description

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
125
495.24%
Maintainers
3
Weekly downloads
 
Created
Source

Brainstack Core

The @brainstack/core package provides a function createCore that creates a core object with a state, a bridge client/server, and a logger.

Installation

To install @brainstack/core, run the following command:

npm install @brainstack/core

Usage

To use createCore, import it along with the necessary dependencies:

import { createCore } from '@brainstack/core';

const core = createCore();

The core object returned by createCore includes the following properties:

state: a state object created with createState bridge: a bridge client or server object created with BridgeServer or BridgeClient logger: a logger object created with createLogger

API

createCore(options: CoreOptions): object

Creates a core object with a state, a bridge client/server, and a logger.

Arguments options (object): An object with the following properties: stateOptions (any): Options for createState.

Returns The core object with the following properties:

state (object): The state object created with createState. bridge (object): The bridge client or server object created with BridgeServer or BridgeClient. logger (object): The logger object created with createLogger.

FAQs

Package last updated on 06 Jul 2023

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