Socket
Socket
Sign inDemoInstall

incrementable

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    incrementable

Increment length values in textfields, like dev tools!


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
7.41 kB
Created
Weekly downloads
 

Readme

Source

Incrementable

Increment length values in textfields, like dev tools!

2022 Rewrite (v2)

  • ESM
  • Now preserves undo history!
  • Now selects the token that is being (in|de)cremented to make what is happening obvious

Usage

ESM-only:

import Incrementable from "https://incrementable.verou.me/incrementable.mjs";

let editor = document.querySelector("textarea");
new Incrementable(editor);

incrementable.js is identical to incrementable.mjs with the only difference that it also creates a global, so you can also use it like this:

<script type="module" src="https://incrementable.verou.me/incrementable.js"></script>
<script>
let editor = document.querySelector("textarea");
new Incrementable(editor);
</script>

This is useful for older scripts that check if Incrementable is available by checking if it's present on window.

Keywords

FAQs

Last updated on 03 Feb 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc