Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

flesch

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flesch - npm Package Compare versions

Comparing version
1.0.4
to
1.0.5
+9
-5
package.json
{
"name": "flesch",
"version": "1.0.4",
"version": "1.0.5",
"description": "Formula to detect the ease of reading a text according to Flesch Reading Ease (1975)",

@@ -13,2 +13,6 @@ "license": "MIT",

"bugs": "https://github.com/words/flesch/issues",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",

@@ -25,9 +29,9 @@ "contributors": [

"is-nan": "^1.0.0",
"nyc": "^14.0.0",
"nyc": "^15.0.0",
"prettier": "^1.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^5.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"tinyify": "^2.0.0",
"xo": "^0.24.0"
"xo": "^0.25.0"
},

@@ -34,0 +38,0 @@ "scripts": {

@@ -8,16 +8,16 @@ # flesch

Formula to detect the grade level of text according to the [Flesch Reading
Ease][formula].
Formula to detect the grade level of text according to the [Flesch reading
ease][formula].
See [syllable][] for detecting syllables.
See [`syllable`][syllable] for detecting syllables.
## Installation
## Install
[npm][]:
```bash
```sh
npm install flesch
```
## Usage
## Use

@@ -54,2 +54,9 @@ ```js

Therefore we can use the following formula to approximate the average age a
student would understand a document at, given score `score`:
```js
var age = 20 - Math.floor(score / 10)
```
## Related

@@ -56,0 +63,0 @@