New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nutzlich

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nutzlich

A bunch of useful svelte utilities.

  • 0.5.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Nutzlich

A bunch of useful svelte utilities.

Installation

npm i nutzlich
yarn add nutzlich
pnpm add nutzlich
bun add nutzlich

Quick-Guide

Hover

<script>
	import { useHover } from 'nutzlich';

	const [isHovered, hoverRef] = useHover();
</script>

<div use:hoverRef>
	{$isHovered ? 'Hovered' : 'Not hovered'}
</div>

Window Size

<script>
	import { windowSize } from 'nutzlich';

	const { width, height } = windowSize();
</script>

<b>Width</b>
{$width}
<b>Height</b>
{$height}

Title

<script>
	import { title } from 'nutzlich';

	const titleStore = title();
</script>

<label>Update title</label>
<input type="text" bind:value={$titleStore} />

Network

<script>
	import { network } from 'nutzlich';

	const networkStore = network();
</script>

<span>
	Since {$networkStore.since.toLocaleString()}
	{$networkStore.state}
</span>

Media Query

<script>
	import { mediaQuery } from 'nutzlich';

	const isLarge = mediaQuery('(min-width: 1024px)');
	const isPortrait = mediaQuery('(orientation: portrait)');
</script>

<span>
	Is large: {$isLarge} <br />
	Is Portrait: {$isPortrait}
</span>

FAQs

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

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