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