# textics

> Text Statistics

Latest version **1.2.0** (published 2020-12-12) · LGPL-3.0 license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2020-12-12 |
| First published | 2017-08-18 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 58.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | Jalal Maskoun |
| Maintainers | jimmy02020 |
| Keywords | move-position, corename, get-info, builderz, package-sorter, mytools, folo, dflex, textics, textics-stream, replace-in, find-in, text, string, recursive, statistics, split, read, data, stat, count, counter, ascii, utility, tools |

## Links

- npm: https://www.npmjs.com/package/textics
- Repository: https://github.com/jalal246/textics
- npm.io page: https://npm.io/package/textics

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2020-12-12
- 1.1.0 — 2020-03-11
- 1.0.0 — 2020-03-10
- 0.1.1 — 2017-08-29
- 0.1.0 — 2017-08-22
- 0.0.1 — 2017-08-18

## README

# textics

> `text/ics` counts lines, words, chars and spaces for a given string :page_with_curl: :memo:

```bash
npm install textics
```

## API

```js
const { lines, words, chars, spaces } = textics(str);
```

### Example

```js
const { textics } = require("textics");

const result = textics("you got the power");

expect(result).to.deep.equal({
  lines: 1,
  words: 4,
  chars: 14,
  spaces: 3
});
```

### Using textics with stream

- [textics-stream](https://github.com/Jimmy02020/textics-stream)

### Related projects

- [packageSorter](https://github.com/jalal246/packageSorter) - Sorting packages
  for monorepos production.

- [builderz](https://github.com/jalal246/builderz) - Building your project with zero config.

- [corename](https://github.com/jalal246/corename) - Extracts package name.

- [get-info](https://github.com/jalal246/get-info) - Utility functions for
  projects production.

- [move-position](https://github.com/jalal246/move-position) - Moves element in given array form index-A to index-B

## Tests

```sh
npm test
```

## License

This project is licensed under the [GPL-3.0 License](https://github.com/jalal246/textics/blob/master/LICENSE)

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