# anytextanalyzer

> A simple npm package for analyzing text.

Latest version **1.0.0** (published 2024-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install anytextanalyzer
pnpm add anytextanalyzer
yarn add anytextanalyzer
bun add anytextanalyzer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-03-04 |
| First published | 2024-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | kovtunmykola |
| Maintainers | kovtunmykola |
| Keywords | text, analyzer, count, words, characters, sentences, paragraphs |

## Links

- npm: https://www.npmjs.com/package/anytextanalyzer
- Repository: https://github.com/kovtunmykola/AnyTextAnalyzer
- Homepage: https://github.com/kovtunmykola/AnyTextAnalyzer#readme
- Issues: https://github.com/kovtunmykola/AnyTextAnalyzer/issues
- npm.io page: https://npm.io/package/anytextanalyzer

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [moment](https://npm.io/package/moment.md) ^2.29.1
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-03-04

## README

# AnyTextAnalyzer

AnyTextAnalyzer is a simple npm package for analyzing text. It provides functionality to count words, characters, sentences, and paragraphs in a given text string.

## Installation

You can install the package via npm:

```
npm install anytextanalyzer
```

## Usage

```javascript
const AnyTextAnalyzer = require('anytextanalyzer');

const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";

const analyzer = new AnyTextAnalyzer(text);

const analysisResult = analyzer.analyze();

console.log(analysisResult);
```

The `analyze()` method returns an object containing the following properties:

- `wordCount`: Number of words in the text.
- `charCount`: Number of characters in the text.
- `sentenceCount`: Number of sentences in the text.
- `paragraphCount`: Number of paragraphs in the text.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---
_Source: https://npm.io/package/anytextanalyzer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
