Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

zrrrzzt/lix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status js-standard-style

Moved!

This repo has moved!

Further development will be done at https://github.com/zrrrzzt/lix-index

New command to install

$ npm i lix-index

lix

Measure the readability of your text using LIX-index

Installation

$ npm i lix

Usage

'use strict'

const lix = require('lix')
const text = 'Dette er en lang tekst. Den har noen, men ikke så mange, kjempevanskelige ord. Her er et eksempel på et slikt ord: onomatopoetikon.'

console.log(lix(text)) // => 18.79

It will return 0 for no input and no periods.

License

MIT