uni-nope
v1.0.0
Published
RegExp for non-ASCII characters filtering.
Downloads
10
Maintainers
Readme
uni-nope
uni-nope is a Node.js package that provides a simple way to filter non-ASCII characters from strings using regular expressions.
Installation
You can install the package via npm:
npm install uni-nope
Usage
const rejectASCII = require('uni-nope');
const input = 'Hello, 世界!';
const filtered = rejectASCII(input);
console.log(filtered); // Output: Hello, !
API
rejectASCII(inputString)
inputString
(string): The input string to filter.- Returns: The filtered string with non-ASCII characters removed.
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.