websitetextanalyzer

1.0.0 • Public • Published

WebsiteTextAnalyzer

WebsiteTextAnalyzer is a simple npm package for analyzing the text content of a website. It utilizes the AnyTextAnalyzer module for text analysis.

Installation

You can install the package via npm:

```bash npm install websitetextanalyzer ```

Usage

const analyzeWebsite = require('websitetextanalyzer');

const url = 'https://example.com';

analyzeWebsite(url)
    .then(analysisResult => {
        console.log("Analysis Result:", analysisResult);
    })
    .catch(error => {
        console.error("Error:", error);
    });

The analyzeWebsite(url) function takes a URL of the website as input and returns a Promise that resolves to the analysis result. The analysis result includes information about the number of words, characters, sentences, and paragraphs in the text content of the website.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i websitetextanalyzer

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

2.44 kB

Total Files

3

Last publish

Collaborators

  • kovtunmykola