
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
write-and-delete
Advanced tools
Small js library to animate some writing effect through a list of strings.
Small js library to animate some writing effect through a list of strings. It also supports settings for typo errors, to make it more human likely.
Note It uses generators, so it's only supported in more modern browsers.

Import the library
<script src="https://unpkg.com/write-and-delete@VERSION/dist/lib.js"></script>
and then it's available in the global window scope.
writeAndDelete(document.querySelector("#header"), [
"Buenos dias",
"Good morning",
"Guten Morgen ",
"Buon giorno",
], {
timeout: 1000,
loop: true,
speed: 200,
errorQuota: 0.5,
cursor: '_',
cursorSpeed: 300,
});
this library is also available as a webcomponent.
Import the component
<script src="https://unpkg.com/write-and-delete@VERSION/dist/webcomponent.js"></script>
and then set it up in your markup
<h1>
<write-and-delete timeout="1000" loop="true" speed="200">JavaScript, HTML5, CSS3</write-and-delete>
</h1>
| Property | Type | Description |
|---|---|---|
| timeout | number | required Timeout until next element is been written/deleted |
| speed | number | required Velocity of typing effect |
| speedVariation | number | A variation for the speed property. So it is not too linear |
| loop | boolean | Restart after reaching the last text in the list |
| errorQuota | number | Quota of typos injected in the text |
| errorCharacterMap | string | Custom string of characters used for the typo errors. |
| cursor | string | Character of the cursor like / or _ |
| cursorSpeed | number | Speed of the blinking animation |
FAQs
Small js library to animate some writing effect through a list of strings.
We found that write-and-delete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.