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

scatter-framework

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scatter-framework

Scatter - the extensive JavaScript framework, built with stability.

latest
npmnpm
Version
1.0.3
Version published
Maintainers
0
Created
Source

scatter-js

Scatter

Scatter is an extensive JavaScript framework SDK built with stability in mind. It provides a variety of components, utilities, state management, and routing capabilities to streamline frontend development.

Installation

Clone the repository and run npm install to install dependencies.

git clone https://github.com/Scatter-JS/Scatter.git

Set the src folder in your project, and you can start writing code inside of that folder.

Usage

Components

  • Button
  • Card
  • TextField
  • Container
  • NavBar
  • Sidebar
  • Modal
  • Tooltip
  • Dropdown
  • Table
  • Badge
  • Alert
  • ProgressBar
  • Spinner

Utilities

  • DOM Utilities
  • Fetch Utilities
  • Validation Utilities
  • Event Bus
  • Date Formatter
  • Storage Utility
  • HTTP Utility

State Management

Scatter uses Redux-like state management with actions, reducers, and middleware.

Example State Usage

import Store from './src/state/Store.js';
import reducer from './src/state/Reducer.js';
import middleware from './src/state/middleware.js';
import { addItemAction, removeItemAction } from './src/state/Action.js';
import { getItems } from './src/state/Selector.js';

const store = new Store(reducer);

// Subscribe to state changes
const unsubscribe = store.subscribe(() => {
  const items = getItems(store.getState());
  console.log('Items:', items);
});

// Dispatch actions
store.dispatch(addItemAction({ id: 1, name: 'Item 1' }));
store.dispatch(addItemAction({ id: 2, name: 'Item 2' }));
store.dispatch(removeItemAction(1));

// Unsubscribe from state changes
unsubscribe();

FAQs

Package last updated on 06 Jul 2024

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