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

fit-text-webcomponent

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fit-text-webcomponent

A minimal fit-text web-component / custom-element

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fit-text

A very basic and lightweight fit-text web component.

Adjusts the font-size to fit the parent container width.

Highlights

  • pure web component / custom element
  • less than 500 byte (minified + gzip)
  • no dependencies
  • no additional css / js required

Demo

Demo on Codepen

Play with this demo on codepen.io.

Usage

<script src="https://unpkg.com/fit-text-webcomponent"></script>

<div style="width: 50vw;">
  <fix-text>This fits to 50vw</fit-text>
</div>

Also checkout the examples directory.

Keywords

FAQs

Package last updated on 08 Oct 2018

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