
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
reading-level
Advanced tools
Convert text to a reading level based on the Flesch-Kincaid scoring system
Reading-level returns the numeric reading level of a sample text based on the Flesch-Kincaid Grade Level Readability Formula.
const { readingLevel } = require('reading-level')
const text1 = 'this is a simple sentence'
const text2 = 'the perpendicular platypus perused the panoramic pyramid'
const text3 = '0120131908 74123987419823'
const text4 = ''
readingLevel(text1) // 3
readingLevel(text2) // 21
readingLevel(text3) // 'Either no sentences or words, please enter valid text'
readingLevel(text4) // 'Either no sentences or words, please enter valid text'
readingLevel(text2, 'full') // { sentences: 1,
// words: 7,
// syllables: 20,
// unrounded: 20.854285714285712,
// rounded: 21 }
'full'
as a second argument to get the breakdown npm run test
FAQs
Convert text to a reading level based on the Flesch-Kincaid scoring system
The npm package reading-level receives a total of 22 weekly downloads. As such, reading-level popularity was classified as not popular.
We found that reading-level demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.