textics

1.2.0 • Public • Published

textics

text/ics counts lines, words, chars and spaces for a given string 📃 📝

npm install textics

API

const { lines, words, chars, spaces } = textics(str);

Example

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

Related projects

  • packageSorter - Sorting packages for monorepos production.

  • builderz - Building your project with zero config.

  • corename - Extracts package name.

  • get-info - Utility functions for projects production.

  • move-position - Moves element in given array form index-A to index-B

Tests

npm test

License

This project is licensed under the GPL-3.0 License

Package Sidebar

Install

npm i textics

Weekly Downloads

6

Version

1.2.0

License

LGPL-3.0

Unpacked Size

59.8 kB

Total Files

18

Last publish

Collaborators

  • jimmy02020