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

@touchspin/core

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@touchspin/core

Core logic for TouchSpin (framework-agnostic)

Source
npmnpm
Version
5.0.1-alpha.0
Version published
Maintainers
1
Created
Source

@touchspin/core

Framework-agnostic TouchSpin logic that powers every renderer. The package exposes ESM-only entry points and ships TypeScript declarations in dist/.

Install

npm install @touchspin/core

Usage

import { TouchSpin } from '@touchspin/core';
import Bootstrap5Renderer from '@touchspin/renderer-bootstrap5';
import '@touchspin/renderer-bootstrap5/css';

TouchSpin(document.querySelector('#quantity'), {
  renderer: Bootstrap5Renderer,
  min: 0,
  max: 100,
  step: 1,
});

TouchSpin attaches the instance directly to the DOM element and returns the API object (methods such as upOnce, downOnce, updateSettings, destroy). Retrieve an existing instance with getTouchSpin(element) when needed.

Exports

  • @touchspin/coredist/index.js (ESM) with dist/index.d.ts
  • @touchspin/core/renderer → renderer contracts and base classes (dist/renderer.js, dist/renderer.d.ts)
  • package.json is exposed for tooling via exports['./package.json']

Packaging Notes

  • sideEffects: false enables tree-shaking for bundlers.
  • Supported runtimes: Node 18.17+ (LTS versions 18, 20, 22), evergreen browsers.
  • No UMD bundle is produced—load the core through native ESM or a bundler/import map.
  • jQuery bridge: @touchspin/jquery
  • Renderers: packages/renderers
  • Web component: @touchspin/web-component

For implementation details and extension guidelines, see docs/architecture/renderer-guide.md.

FAQs

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