1.2.0 • Published 5 years ago
textics v1.2.0
textics
text/icscounts lines, words, chars and spaces for a given string :page_with_curl: :memo:
npm install texticsAPI
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 testLicense
This project is licensed under the GPL-3.0 License