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 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.eslintrc.json

38

package.json
{
"name": "glitched-writer",
"version": "1.0.1",
"version": "1.0.2",
"description": "glitched text writer module",

@@ -12,5 +12,7 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>",

"homepage": "https://github.com/thetarnav/glitched-writer#readme",
"main": "index.js",
"main": "glitchedWriter-min.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "parcel test/index.pug --out-dir dev",
"build": "parcel build glitchedWriter.js --no-cache --out-dir . --out-file glitchedWriter-min.js",
"test": "parcel index.html"
},

@@ -24,3 +26,33 @@ "keywords": [

"async"
],
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.6.3",
"babel-eslint": "^10.0.3",
"browserslist": "^4.7.1",
"eslint": "^6.5.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-react-hooks": "^2.1.2",
"parcel-bundler": "^1.12.4",
"pug": "^2.0.4",
"sass": "^1.23.0"
},
"dependencies": {
"lodash.debounce": "^4.0.8"
},
"babel": {
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
},
"browserslist": [
"defaults"
]
}

20

README.md
# Glitched Writer
[![](https://data.jsdelivr.com/v1/package/npm/glitched-writer/badge)](https://www.jsdelivr.com/package/npm/glitched-writer)
![glitched-writer-preview](https://user-images.githubusercontent.com/24491503/67164275-06ab6900-f379-11e9-81ac-cab76dbc8dcd.gif)
### What it does:

@@ -15,12 +17,16 @@

### Code Examples:
- Standalone function call with .then
- 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 )`
- Creating GlitchedWriter class instance for later use:
- Writing using instance
`writerObject.write( 'message' )`
`const writerObject = setGlitchedWriter( htmlElement, 'cUsToM gLiTcH cHaRs', {stepsMax: 10} )`
- Adding event listener *(**e.detail** holds Object with usefull **text** property)*
- Writing using instance: ('' <- means that glitched characters will be taken from the inputed text characters)
`writerObject.write( 'message', '' )`
- Adding event listener (**e.detail** holds Object with usefull **text** property):
`htmlElement.addEventListener('glitchWrote', e => console.log( e.detail.text ))`

@@ -35,2 +41,2 @@

- [JSDelivr](https://www.jsdelivr.com/package/npm/glitched-writer "JSDelivr")
- [Codepen DEMO](https://codepen.io/thetarnav/pen/MWWyPzY "Codepen DEMO")
- [Codepen DEMO](https://codepen.io/thetarnav/pen/MWWyPzY "Codepen DEMO")
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