Socket
Socket
Sign inDemoInstall

text-formatter-js

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    text-formatter-js

This is a simple text formatter package for javascript. It can be used to format text in different ways.


Version published
Maintainers
1
Install size
4.45 kB
Created

Readme

Source

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

ParameterTypeDescription
textstringRequired. 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.

Keywords

FAQs

Last updated on 17 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc