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

doa-global-store

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doa-global-store

Library to quickly and easily manage global variables in a React app

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

doa-global-store

Description

doa-global-store is a lightweight library for React that allows you to save and read global values using simple JavaScript functions, without the need to set up Context, Redux, or other complex configurations.

With this library, you can easily write and access global data (strings, numbers, objects, arrays) throughout your React application.

Installation

You can install doa-global-store via npm:

npm install doa-global-store

Usage

# Usage for writing global variables
import { writeGlobalValue, readGlobalValue } from 'doa-global-store';
writeGlobalValue('valueExemple', 42);

## Usage for reading global variables
console.log(readGlobalValue('valueExemple')); // Output: 42

License

MIT

Keywords

global

FAQs

Package last updated on 26 Mar 2025

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