Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@studio-freight/hamo

Package Overview
Dependencies
Maintainers
4
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@studio-freight/hamo

hamo means hook, do the math.

  • 0.6.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.4K
decreased by-15.96%
Maintainers
4
Weekly downloads
 
Created
Source

HAMO

Introduction

Hamo means hook, you do the math


Setup

$ npm i @studio-freight/hamo

or use whatever package manager you like the most


Features

This toolkit is composed of:

useClickOutsideEvent – trigger a callback when user clicks outside of a reference node.

useDebug – returns true if #debug is present in the url.

useDocumentReadyState – returns true if document is ready.

useEventBus, { dipatch } – creates a global event bus.

useFrame – use @studio-freight/tempus animation frame.

useInterval – create and dispose intervals.

useIsClient – returns true if window is defined.

useIsTouchDevice – returns true if client is using a touch-capable device.

useIsVisible – returns true if a reference node is in the viewport.

useMediaQuery – css-like media query support in Javascript.

useRect – getboundingclientrect with scrollY sauce if using our lenis smooth scroll

useSlots – brings vue slots to react


Authors

This set of hooks is curated and maintained by the Studio Freight Darkroom team:


License

The MIT License.

FAQs

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc