Skip to content

sachinkiranti/textual

Repository files navigation

Textual

A simple text manipulation js library.

Install

Download

CDN

Link directly to Textual files on unpkg.

<script src="https://unpkg.com/@sachinkiranti/textual@1.0.1/dist/textual.min.js"></script>

Usage

"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

npm install

Run tests

npm run test