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

typetestr

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typetestr

Control font size by range slider. Useful for font presentation

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-6.25%
Maintainers
0
Weekly downloads
 
Created
Source

typetestr

testr illustraition

Font size and variable setting slider for font preview. Mouse wheel and keyboard interaction include.

Get dist/typetestr.js. Add script as a module. let tt = new TypeTestr(). Script adds rage input and makes element contenteditable.

import TypeTestr from './typetestr.js'
// create new object on page load
let tt = new TypeTestr() // or new TypeTester("my-class-name")

In constructor you can specify class name and initial font size:

new TypeTestr(className:string="typetestr") //"typetestr" — default class name

Add dist/typetestr.css for styling.

Use dataset for customization, for example

<p class="typetestr" data-typetestr="size:16:100:40, wght:200:1000:300, wdth:75:125:100">text</p>

Write with vitejs, typescript (es6 module)

run npm run dev for development run npm run build for comlile js and css


Tested on:

Safari Version 16.3 (18614.4.6.1.6) Google Chrome Version 110.0.5481.177 (Official Build) (x86_64)

Keywords

FAQs

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