https://github.com/sachinkiranti/textual
Simple String manipulation library
https://github.com/sachinkiranti/textual
append-text character-count js prepend-text text word-count
Last synced: 19 days ago
JSON representation
Simple String manipulation library
- Host: GitHub
- URL: https://github.com/sachinkiranti/textual
- Owner: sachinkiranti
- Created: 2022-05-01T12:59:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-02T15:18:28.000Z (about 4 years ago)
- Last Synced: 2025-11-03T14:25:24.114Z (7 months ago)
- Topics: append-text, character-count, js, prepend-text, text, word-count
- Language: TypeScript
- Homepage:
- Size: 125 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Textual
A simple text manipulation js library.
## Install
### Download
- [textual.min.js](https://unpkg.com/@sachinkiranti/textual@1.0.1/dist/textual.min.js)
### CDN
Link directly to Textual files on [unpkg](https://unpkg.com).
``` html
```
## Usage
```js
"Hello World".wordCount() // Count the word from the given string
"Hello World".charCount() // Count the character from the given string
"Hello World".append(" Bye !") // Append the given string "Example :" to the string i.e. 'Hello World Bye !'
"Hello World".prepend("Example : ") // Prepend the given string "Example :" to the string i.e. 'Example : Hello World'
```
## Development
This package is developed with Node.js v16.13.2 and npm v8.1.2
Install dependencies
``` sh
npm install
```
Run tests
``` sh
npm run test
```