Skip to content

zegulas/remove-invisible-characters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Invisible Characters Remover

A simple, yet powerful utility function for JavaScript applications that removes invisible characters from strings. This function can be particularly useful when dealing with text processing, cleaning up user input, or preparing strings for further processing.

Features

  • Removes a wide range of invisible characters from a given string.
  • Supports common invisible characters, including null, backspace, line feed, and many others.
  • Easy to integrate into any JavaScript project.

Getting Started

Installation

This module is designed to be easy to integrate into your existing JavaScript project. You can include it directly into your project by copying the removeInvisibleCharacters.js file, or by using a module bundler of your choice.

Usage

Here's a simple example of how to use the removeInvisibleCharacters function in your code:

const { removeInvisibleCharacters } = require('remove-invisible-characters');

const originalText = "Your text with\x00 invisible\xA0characters";
const cleanedText = removeInvisibleCharacters(originalText);

console.log(cleanedText); // Outputs: "Your text with  invisible characters"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published