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

@slipmatio/toolbelt

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slipmatio/toolbelt

**Note: this project is under active development, DO NOT USE IN PRODUCTION**

  • 0.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
137
decreased by-72.87%
Maintainers
0
Weekly downloads
 
Created
Source

Slipmat Toolbelt

Note: this project is under active development, DO NOT USE IN PRODUCTION

General utilities for Web development

Features

Browser

  • browserIsIE()
  • browserIsSupported()
  • copyToClipboard(content: string)
  • getCookie(name: string)
  • hasTimeZoneSupport()
  • isValidSecureUrl(url: string)
  • prefetchImages(url: string|string[])
  • storageAvailable(type: 'localStorage' | 'sessionStorage')

Vue

  • getNextPath(router?: Router) - returns the value of ?next query param or /
  • isString(value: string | LocationQueryValue[])

Installation

pnpm add @slipmatio/toolbelt

Usage

Browser tools: import { tool } from @slipmatio/toolbelt

Vue tools (vue and vue-router required): import { tool } from @slipmatio/toolbelt/vue

Development

Install dependencies

pnpm i

Run development server

pnpm dev

Testing

Type check: pnpm ts

Unittests
  1. pnpm test
E2E
  1. Run the backend: uv run uvicorn api:app --reload
  2. pnpm test:e2e

Publishing

Bump version number in package.json, merge to main.

Contributing

Contributions are welcome! Please follow the code of conduct when interacting with others.

Elsewhere

Follow @uninen on Twitter

Keywords

FAQs

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