glitched-writer
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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" | ||
] | ||
} |
# 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") |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
84218
12
532
41
1
14
3
2
+ Addedlodash.debounce@^4.0.8
+ Addedlodash.debounce@4.0.8(transitive)