Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jalal246/textics
📉 JavaScript Text Statistics that counts lines, words, chars, and spaces.
https://github.com/jalal246/textics
characters count-data count-lines counter counts-lines curl get-info linesearch memo mytools search-in-text statistics stream string string-calculator string-search text textics tools wordsearch
Last synced: 4 days ago
JSON representation
📉 JavaScript Text Statistics that counts lines, words, chars, and spaces.
- Host: GitHub
- URL: https://github.com/jalal246/textics
- Owner: jalal246
- License: gpl-3.0
- Created: 2017-08-16T14:50:53.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2022-08-30T16:32:55.000Z (about 2 years ago)
- Last Synced: 2024-11-01T01:52:51.484Z (11 days ago)
- Topics: characters, count-data, count-lines, counter, counts-lines, curl, get-info, linesearch, memo, mytools, search-in-text, statistics, stream, string, string-calculator, string-search, text, textics, tools, wordsearch
- Language: JavaScript
- Homepage: https://jalal246.github.io/textics/
- Size: 163 KB
- Stars: 36
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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/jalal246/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)