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

@septem/hooks

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@septem/hooks

A hooks library compatible with React, Vue 3, and SolidJS

latest
npmnpm
Version
0.1.0
Version published
Maintainers
0
Created
Source

@septem/hooks

A hooks library compatible with React, Vue 3, and SolidJS.

Features

  • Framework Agnostic: Use the same hooks across React, Vue 3, and SolidJS
  • TypeScript Support: Full TypeScript support with proper types for each framework
  • Lightweight: Minimal dependencies and tree-shakable
  • Consistent API: Similar API patterns across all frameworks

Installation

# npm
npm install @septem/hooks

# yarn
yarn add @septem/hooks

# pnpm
pnpm add @septem/hooks

Usage

Import hooks from the specific framework path:

React

import { useToggle, useLocalStorage, useClippy } from '@septem/hooks/react';

function MyComponent() {
  const [value, toggle] = useToggle(false);
  const [name, setName] = useLocalStorage('user-name', '');
  const [clipboard, setClipboard] = useClippy();
  
  // Use the hooks...
}

Vue 3

<script setup>
import { useToggle, useLocalStorage, useClippy } from '@septem/hooks/vue';

const [value, toggle] = useToggle(false);
const [name, setName] = useLocalStorage('user-name', '');
const [clipboard, setClipboard] = useClippy();
</script>

SolidJS

import { useToggle, useLocalStorage, useClippy } from '@septem/hooks/solid';

function MyComponent() {
  const [value, toggle] = useToggle(false);
  const [name, setName] = useLocalStorage('user-name', '');
  const [clipboard, setClipboard] = useClippy();
  
  // Use the hooks...
}

Available Hooks

  • useToggle: A hook for managing boolean toggle states
  • useLocalStorage: A hook for persisting data in localStorage
  • useClippy: A hook for interacting with the clipboard

Documentation

For detailed documentation and examples, visit our documentation site.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add some amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

中文文档

查看中文文档

Keywords

hooks

FAQs

Package last updated on 12 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