text-formatter-js

This is a simple text formatter package for javascript. It can be used to format text in different ways.
3,084
Install
npm install text-formatter-js
Latest Version:0.0.1
License:MIT
Last Updated:Aug 17, 2023
Links: GitHub  ·  npm
Maintainer: wahed_emon

JavaScript Text Formatter

JavaScript Text Formatter is a JavaScript library that can be used to format text in different ways.

Getting Started

Installation

To use JavaScript File Downloader in your project, you can download the jsFileDownloader.js file and include it in your project. Alternatively, you can install it using npm:

npm i text-formatter-js --save
yarn add text-formatter-js

Importing

import textFormatter from "text-formatter-js";

How to use it in your project

use this function in your project and pass the text you want to format as a parameter
textFormatter("your text");
or you can store the returned value in a variable
const formattedText = textFormatter("your text");

console.log(formattedText);

Parameters

Parameter Type Description
text string Required. The text you want to format.

Error Response

Description
If you pass a number or any other type of data, it will return an error (Please provide a string)

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Author

  • md-wahiduzzaman-emon [Md Wahiduzzaman Emon]

Contributing

  • Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
  • Please make sure to update tests as appropriate.

Related Packages

text-truncate-scroll

A light-weight js utility that truncates overflowing text with ellipsis, and sho...

11,369 15
@nedcloarbr/biome-config

BiomeJS Configuration used by NedcloarBR in their projects

6,658 3
hcx

HTML Compiler - Routeless, targetless, remote, runnable routes and more ...

468
@tchwrks/storybook-text-search

A Storybook addon that enables full-text search through your MDX files.

8,158 8

Version History

Version Released License
0.0.1 MIT