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

ep_readability

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_readability - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"name": "ep_readability",
"version": "0.0.4",
"version": "0.0.5",
"description": "Calculates the FLESCH readability index, client based.",

@@ -5,0 +5,0 @@ "author": "Erik <ep_readability@web.de>",

@@ -191,2 +191,3 @@ // ----------------------------------------------------------------------------

}
var colorOrder = ['-1000', '10', '20', '35', '50', '60', '80', '90'];

@@ -244,6 +245,7 @@ // do not calculate index if no key has been pressed

result = fleschReadingEase( text );
jQuery.each(color, function(index, item) {
if(result.flesch > index) {
myColor = item.color;
myCategory = window._(item.resultCategory);
jQuery.each(colorOrder, function(index, item) {
alert(result.flesch +" - "+ item)
if(result.flesch > item) {
myColor = color[item].color;
myCategory = window._(color[item].resultCategory);
resultFlesch = result.flesch;

@@ -250,0 +252,0 @@ }

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