Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

pkgnewfefame

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

pkgnewfefame

Utility layer for asynchronous state management

latest
Source
npmnpm
Version
3.2.1
Version published
Maintainers
1
Created
Source

pkgname

A lightweight, zero-dependency utility layer for asynchronous state management in React applications.

npm version Build Status License: MIT

Features

  • 🚀 Lightweight: Zero dependencies, tiny bundle size.
  • 🔄 Async State: Simplified handling of loading, error, and success states.
  • 🔌 Plug & Play: Works out of the box with any Promise-based API.
  • 📝 TypeScript: Written in TypeScript with full type definitions.

Installation

npm install pkgname@latest
npx pkgname

Usage

import { useAsyncState } from 'pkgname';

const { data, loading, error, run } = useAsyncState(myPromise);

// Trigger the async operation
run();

API

useAsyncState(promiseFn, dependencies)

  • promiseFn: A function that returns a Promise.
  • dependencies: Array of dependencies to re-run the hook.

License

MIT © pkgname Contributors

Keywords

react

FAQs

Package last updated on 05 Feb 2026

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