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

glitched-writer

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glitched-writer

glitched text writer module

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
58
decreased by-19.44%
Maintainers
1
Weekly downloads
 
Created
Source

Glitched Writer

What it does:

  • Edits textContent of chosen html element with a (custom or not) set of "glitched" characters until it writes wanted text.
  • Can be used as an object (instance of GlitchedWriter class) so that on multiple write function calls the writing process will be automatically reset and write the lastest inputed message.
  • The write function is an asynchronous so .then can be used.
  • Finished writing will cause CustomEvent glitchWrote dispatch on html element.
  • The html element gets glitch-writing class for the process of writing.

Code Examples:

  • Standalone function call with .then glitchWrite( htmlElement, 'text to write' ).then(console.log)

  • Creating GlitchedWriter class instance for later use const writerObject = new GlitchedWriter( htmlElement )

  • Writing using instance writerObject.write( 'message' )

  • Adding event listener (e.detail holds Object with usefull text property) htmlElement.addEventListener('glitchWrote', e => console.log( e.detail.text ))


Keywords

FAQs

Package last updated on 20 Oct 2019

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