@power-seo/readability
Advanced tools
+9
-3
| { | ||
| "name": "@power-seo/readability", | ||
| "version": "1.0.11", | ||
| "version": "1.0.12", | ||
| "description": "Readability scoring algorithms (Flesch-Kincaid, Gunning Fog, Coleman-Liau, ARI) with configurable thresholds", | ||
@@ -40,6 +40,12 @@ "keywords": [ | ||
| "files": [ | ||
| "dist" | ||
| "dist", | ||
| "LICENSE" | ||
| ], | ||
| "engines": { | ||
| "node": ">=18.0.0", | ||
| "npm": ">=9.0.0", | ||
| "pnpm": ">=8.0.0" | ||
| }, | ||
| "dependencies": { | ||
| "@power-seo/core": "1.0.11" | ||
| "@power-seo/core": "1.0.12" | ||
| }, | ||
@@ -46,0 +52,0 @@ "devDependencies": { |
+23
-20
| # @power-seo/readability | ||
|  | ||
|  | ||
@@ -10,3 +10,2 @@ Multi-algorithm readability scoring for TypeScript — Flesch Reading Ease, Flesch-Kincaid, Gunning Fog, Coleman-Liau, and ARI in one unified API with actionable status labels. | ||
| [](https://socket.dev/npm/package/@power-seo/readability) | ||
| [](https://github.com/CyberCraftBD/power-seo/actions) | ||
| [](https://opensource.org/licenses/MIT) | ||
@@ -34,4 +33,10 @@ [](https://www.typescriptlang.org/) | ||
|  | ||
|  | ||
| <p align="left"> | ||
| <a href="https://www.buymeacoffee.com/ccbd.dev" target="_blank"> | ||
| <img src="https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20coffee&emoji=&slug=ccbd.dev&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff" /> | ||
| </a> | ||
| </p> | ||
| --- | ||
@@ -55,3 +60,3 @@ | ||
|  | ||
|  | ||
@@ -77,3 +82,3 @@ --- | ||
|  | ||
|  | ||
@@ -119,3 +124,3 @@ --- | ||
|  | ||
|  | ||
@@ -148,8 +153,9 @@ --- | ||
| Import individual algorithm functions for targeted scoring in performance-sensitive paths. All accept `TextStatistics` and return `AlgorithmScore`: | ||
| Import individual algorithm functions for targeted scoring in performance-sensitive paths. All accept `TextStatistics` and return `AlgorithmScore`. Use `getTextStatistics` from `@power-seo/core` to compute statistics: | ||
| ```ts | ||
| import { computeTextStatistics, fleschReadingEase, gunningFog } from '@power-seo/readability'; | ||
| import { fleschReadingEase, gunningFog } from '@power-seo/readability'; | ||
| import { getTextStatistics } from '@power-seo/core'; | ||
| const stats = computeTextStatistics('Your plain text here.'); | ||
| const stats = getTextStatistics('Your plain text here.'); | ||
| const ease = fleschReadingEase(stats); | ||
@@ -237,9 +243,13 @@ const fog = gunningFog(stats); | ||
| ### `computeTextStatistics(text)` | ||
| ### Text Statistics | ||
| To compute text statistics for use with individual algorithm functions, use `getTextStatistics()` from `@power-seo/core`: | ||
| ```ts | ||
| function computeTextStatistics(plainText: string): TextStatistics; | ||
| import { getTextStatistics } from '@power-seo/core'; | ||
| function getTextStatistics(text: string): TextStatistics; | ||
| ``` | ||
| Returns raw statistics used by all algorithm functions. Input must be plain text (no HTML). | ||
| Returns raw statistics used by all algorithm functions. Input can be plain text or HTML (HTML tags are stripped automatically). | ||
@@ -289,3 +299,2 @@ ### Types | ||
| - No `eval` or dynamic code execution | ||
| - npm provenance enabled — every release is signed via Sigstore through GitHub Actions | ||
| - CI-signed builds — all releases published via verified `github.com/CyberCraftBD/power-seo` workflow | ||
@@ -305,3 +314,3 @@ - Safe for SSR, Edge, and server environments | ||
| | [`@power-seo/meta`](https://www.npmjs.com/package/@power-seo/meta) | `npm i @power-seo/meta` | SSR meta helpers for Next.js App Router, Remix v2, and generic SSR | | ||
| | [`@power-seo/schema`](https://www.npmjs.com/package/@power-seo/schema) | `npm i @power-seo/schema` | Type-safe JSON-LD structured data — 23 builders + 21 React components | | ||
| | [`@power-seo/schema`](https://www.npmjs.com/package/@power-seo/schema) | `npm i @power-seo/schema` | Type-safe JSON-LD structured data — 23 builders + 22 React components | | ||
| | [`@power-seo/content-analysis`](https://www.npmjs.com/package/@power-seo/content-analysis) | `npm i @power-seo/content-analysis` | Yoast-style SEO content scoring engine with React components | | ||
@@ -323,8 +332,2 @@ | [`@power-seo/readability`](https://www.npmjs.com/package/@power-seo/readability) | `npm i @power-seo/readability` | Readability scoring — Flesch-Kincaid, Gunning Fog, Coleman-Liau, ARI | | ||
| ## Keywords | ||
| seo · readability · flesch kincaid · flesch reading ease · gunning fog · coleman liau · automated readability index · ari · reading score · text readability · content quality · readability checker · seo readability · content scoring · zero dependency · ci readability · cms readability · readability api · typescript · multi algorithm | ||
| --- | ||
| ## About [CyberCraft Bangladesh](https://ccbd.dev) | ||
@@ -331,0 +334,0 @@ |
100913
0.38%333
0.91%+ Added
- Removed
Updated